Fix device level check, fix ID3D11Device memory leak
continuous-integration/drone/pr Build is failing
Details
continuous-integration/drone/pr Build is failing
Details
parent
7f70318f70
commit
10cbac3fc3
|
@ -2996,7 +2996,7 @@ static uint8_t D3D11_PrepareDriver(
|
|||
) {
|
||||
void *d3d11_dll, *d3dcompiler_dll, *dxgi_dll;
|
||||
PFN_D3D11_CREATE_DEVICE D3D11CreateDeviceFunc;
|
||||
D3D_FEATURE_LEVEL levels[] = { D3D_FEATURE_LEVEL_11_0 };
|
||||
D3D_FEATURE_LEVEL levels[] = { D3D_FEATURE_LEVEL_11_1 };
|
||||
PFN_D3DCOMPILE D3DCompileFunc;
|
||||
PFN_CREATE_DXGI_FACTORY1 CreateDXGIFactoryFunc;
|
||||
HRESULT res;
|
||||
|
@ -3280,6 +3280,9 @@ tryCreateDevice:
|
|||
);
|
||||
ERROR_CHECK_RETURN("Could not get ID3D11Device1 interface", NULL);
|
||||
|
||||
/* Release the old device interface, we don't need it anymore */
|
||||
ID3D11Device_Release(d3d11Device);
|
||||
|
||||
/* Set up the info queue */
|
||||
if (renderer->dxgiInfoQueue)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue