mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-16 11:06:49 +01:00
Fixed leaking of pixel shader object in D3D renderer (thanks, Peter!).
Fixes Bugzilla #2047.
This commit is contained in:
parent
0ca506611c
commit
b44267693d
@ -1835,7 +1835,9 @@ D3D_DestroyRenderer(SDL_Renderer * renderer)
|
||||
IDirect3DSurface9_Release(data->currentRenderTarget);
|
||||
data->currentRenderTarget = NULL;
|
||||
}
|
||||
|
||||
if (data->ps_yuv) {
|
||||
IDirect3DPixelShader9_Release(data->ps_yuv);
|
||||
}
|
||||
if (data->device) {
|
||||
IDirect3DDevice9_Release(data->device);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user