Explorar o código

Fixed resource leak with D3D11 NV12 textures

Sam Lantinga %!s(int64=5) %!d(string=hai) anos
pai
achega
5f0b2a7f54
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      Xcode/SDL/SDL.xcodeproj/project.pbxproj

+ 2 - 0
Xcode/SDL/SDL.xcodeproj/project.pbxproj

@@ -1240,6 +1240,8 @@ D3D11_DestroyTexture(SDL_Renderer * renderer,
     SAFE_RELEASE(data->mainTextureResourceViewU);
     SAFE_RELEASE(data->mainTextureV);
     SAFE_RELEASE(data->mainTextureResourceViewV);
+    SAFE_RELEASE(data->mainTextureNV);
+    SAFE_RELEASE(data->mainTextureResourceViewNV);
     SDL_free(data->pixels);
     SDL_free(data);
     texture->driverdata = NULL;