Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
d3d11: Fixed VB state, avoiding unnecessary recreation (Thanks, Alex!).
Fixes Bugzilla #4779.
  • Loading branch information
icculus committed Sep 2, 2019
1 parent 6c29512 commit a3804ba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/render/direct3d11/SDL_render_d3d11.c
Expand Up @@ -1862,6 +1862,8 @@ D3D11_UpdateVertexBuffer(SDL_Renderer *renderer,
return -1;
}

rendererData->vertexBufferSizes[vbidx] = dataSizeInBytes;

ID3D11DeviceContext_IASetVertexBuffers(rendererData->d3dContext,
0,
1,
Expand Down

0 comments on commit a3804ba

Please sign in to comment.