Skip to content
Permalink
Browse files
Fixed leaking of pixel shader object in D3D renderer (thanks, Peter!).
Fixes Bugzilla #2047.
  • Loading branch information
icculus committed Aug 19, 2013
1 parent 0ca5066 commit b44267693d19ee9764badbcac26f94d84343143b
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/render/direct3d/SDL_render_d3d.c
@@ -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);
}

0 comments on commit b442676

Please sign in to comment.