forked from MoonsideGames/Refresh
Release DLLs after releasing D3D11/DXGI objects (and release dxgi.dll!)
parent
e022faf545
commit
248aa956ac
|
@ -606,16 +606,18 @@ static void D3D11_DestroyDevice(
|
||||||
SDL_DestroyMutex(renderer->contextLock);
|
SDL_DestroyMutex(renderer->contextLock);
|
||||||
SDL_DestroyMutex(renderer->uniformBufferLock);
|
SDL_DestroyMutex(renderer->uniformBufferLock);
|
||||||
|
|
||||||
/* Release the DLLs */
|
|
||||||
SDL_UnloadObject(renderer->d3d11_dll);
|
|
||||||
SDL_UnloadObject(renderer->d3dcompiler_dll);
|
|
||||||
|
|
||||||
/* Release the device and associated objects */
|
/* Release the device and associated objects */
|
||||||
ID3D11DeviceContext_Release(renderer->immediateContext);
|
ID3D11DeviceContext_Release(renderer->immediateContext);
|
||||||
ID3D11Device_Release(renderer->device);
|
ID3D11Device_Release(renderer->device);
|
||||||
IDXGIAdapter_Release(renderer->adapter);
|
IDXGIAdapter_Release(renderer->adapter);
|
||||||
IDXGIFactory_Release(renderer->factory);
|
IDXGIFactory_Release(renderer->factory);
|
||||||
|
|
||||||
|
/* Release the DLLs */
|
||||||
|
SDL_UnloadObject(renderer->d3d11_dll);
|
||||||
|
SDL_UnloadObject(renderer->dxgi_dll);
|
||||||
|
SDL_UnloadObject(renderer->d3dcompiler_dll);
|
||||||
|
|
||||||
|
/* Free the primary Refresh structures */
|
||||||
SDL_free(renderer);
|
SDL_free(renderer);
|
||||||
SDL_free(device);
|
SDL_free(device);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue