Fix memory leak if 10-bit color is not supported

This commit is contained in:
Cameron Gutman 2020-01-15 17:56:11 -08:00
parent d853782fea
commit a0151fbc04

View File

@ -557,6 +557,7 @@ bool DXVA2Renderer::initializeDevice(SDL_Window* window, bool enableVsync)
if (FAILED(hr)) {
SDL_LogWarn(SDL_LOG_CATEGORY_APPLICATION,
"GPU/driver doesn't support A2R10G10B10");
d3d9ex->Release();
return false;
}
}