Free the actual renderer and Refresh device when destroying the device
parent
4dc3d4c45c
commit
387addd67d
|
@ -362,9 +362,13 @@ static void D3D11_DestroyDevice(
|
||||||
IDXGIAdapter1_Release(renderer->adapter);
|
IDXGIAdapter1_Release(renderer->adapter);
|
||||||
IDXGIFactory1_Release(renderer->factory);
|
IDXGIFactory1_Release(renderer->factory);
|
||||||
|
|
||||||
/* Release the DLLs */
|
/* Unload the DLLs */
|
||||||
SDL_UnloadObject(renderer->d3d11_dll);
|
SDL_UnloadObject(renderer->d3d11_dll);
|
||||||
SDL_UnloadObject(renderer->dxgi_dll);
|
SDL_UnloadObject(renderer->dxgi_dll);
|
||||||
|
|
||||||
|
/* Free the renderer and Refresh Device */
|
||||||
|
SDL_free(renderer);
|
||||||
|
SDL_free(device);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Drawing */
|
/* Drawing */
|
||||||
|
|
Loading…
Reference in New Issue