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
2024-02-06 21:17:39 -08:00
parent 3158342441
commit 1c4c29b7ad
3 changed files with 77 additions and 19 deletions

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) {