Browse Source

Fixed resource leak with D3D11 NV12 textures

Sam Lantinga 4 năm trước cách đây
mục cha
commit
5f0b2a7f54
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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;