Fixed bug 1838 - [Patch] Direct3D resource leak on SDL_DestroyRenderer()
This commit is contained in:
parent
cc6f700f06
commit
cbe94acd8e
1 changed files with 1 additions and 0 deletions
|
@ -1506,6 +1506,7 @@ D3D_DestroyRenderer(SDL_Renderer * renderer)
|
|||
}
|
||||
if (data->d3d) {
|
||||
IDirect3D9_Release(data->d3d);
|
||||
ID3DXMatrixStack_Release(data->matrixStack);
|
||||
SDL_UnloadObject(data->d3dDLL);
|
||||
}
|
||||
SDL_free(data);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue