d3d12: reset the vertex buffer size when it is released

main
Sam Lantinga 2022-10-09 09:57:55 -07:00
parent efdb390caa
commit 490c20f93f
1 changed files with 1 additions and 0 deletions

View File

@ -352,6 +352,7 @@ D3D12_ReleaseAll(SDL_Renderer * renderer)
for (i = 0; i < SDL_D3D12_NUM_VERTEX_BUFFERS; ++i) {
SAFE_RELEASE(data->vertexBuffers[i].resource);
data->vertexBuffers[i].size = 0;
}
data->swapEffect = (DXGI_SWAP_EFFECT) 0;