Fixed a swap chain leak and a double-free in testffmpeg.c

Also added more debug logging to the direct3d11 renderer
This commit is contained in:
Sam Lantinga committed 2024-02-06 21:33:57 -08:00
1 parent 3158342441
commit 1c4c29b7ad
3 files changed
+77 -19

No files matched your search

+1 -1
View File
@@ -1282,7 +1282,7 @@ int main(int argc, char *argv[])
quit:
#ifdef SDL_PLATFORM_WIN32
if (d3d11_context) {
ID3D11DeviceContext_Release(d3d11_device);
ID3D11DeviceContext_Release(d3d11_context);
d3d11_context = NULL;
}
if (d3d11_device) {