Skip to content

Commit

Permalink
Fixed leaking of pixel shader object in D3D renderer (thanks, Peter!).
Browse files Browse the repository at this point in the history
Fixes Bugzilla #2047.
  • Loading branch information
icculus committed Aug 19, 2013
1 parent 0ca5066 commit b442676
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/render/direct3d/SDL_render_d3d.c
Expand Up @@ -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);
}
Expand Down

0 comments on commit b442676

Please sign in to comment.