mirror of https://github.com/encounter/SDL.git
d3d12: reset the vertex buffer size when it is released
This commit is contained in:
parent
efdb390caa
commit
490c20f93f
|
@ -352,6 +352,7 @@ D3D12_ReleaseAll(SDL_Renderer * renderer)
|
||||||
|
|
||||||
for (i = 0; i < SDL_D3D12_NUM_VERTEX_BUFFERS; ++i) {
|
for (i = 0; i < SDL_D3D12_NUM_VERTEX_BUFFERS; ++i) {
|
||||||
SAFE_RELEASE(data->vertexBuffers[i].resource);
|
SAFE_RELEASE(data->vertexBuffers[i].resource);
|
||||||
|
data->vertexBuffers[i].size = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
data->swapEffect = (DXGI_SWAP_EFFECT) 0;
|
data->swapEffect = (DXGI_SWAP_EFFECT) 0;
|
||||||
|
|
Loading…
Reference in New Issue