Don't release currentOffscreenRenderTargetView, we don't have a reference to it
This commit is contained in:
parent
9005512c18
commit
2ad4646a24
@ -304,7 +304,6 @@ static void D3D11_ReleaseAll(SDL_Renderer *renderer)
|
||||
SAFE_RELEASE(data->vertexBuffers[i]);
|
||||
}
|
||||
SAFE_RELEASE(data->inputLayout);
|
||||
SAFE_RELEASE(data->currentOffscreenRenderTargetView);
|
||||
SAFE_RELEASE(data->mainRenderTargetView);
|
||||
SAFE_RELEASE(data->swapChain);
|
||||
|
||||
@ -319,6 +318,7 @@ static void D3D11_ReleaseAll(SDL_Renderer *renderer)
|
||||
|
||||
data->swapEffect = (DXGI_SWAP_EFFECT)0;
|
||||
data->rotation = DXGI_MODE_ROTATION_UNSPECIFIED;
|
||||
data->currentOffscreenRenderTargetView = NULL;
|
||||
data->currentRenderTargetView = NULL;
|
||||
data->currentRasterizerState = NULL;
|
||||
data->currentBlendState = NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user