d3d11: Fixed VB state, avoiding unnecessary recreation (Thanks, Alex!).
authorRyan C. Gordon <icculus@icculus.org>
Sun, 01 Sep 2019 22:41:44 -0400
changeset 1304844b0a095f4b7
parent 13047 08db6a6f6c23
child 13049 6ee12b88beed
d3d11: Fixed VB state, avoiding unnecessary recreation (Thanks, Alex!).

Fixes Bugzilla #4779.
src/render/direct3d11/SDL_render_d3d11.c
     1.1 --- a/src/render/direct3d11/SDL_render_d3d11.c	Sat Aug 31 22:58:11 2019 +0200
     1.2 +++ b/src/render/direct3d11/SDL_render_d3d11.c	Sun Sep 01 22:41:44 2019 -0400
     1.3 @@ -1862,6 +1862,8 @@
     1.4              return -1;
     1.5          }
     1.6  
     1.7 +        rendererData->vertexBufferSizes[vbidx] = dataSizeInBytes;
     1.8 +
     1.9          ID3D11DeviceContext_IASetVertexBuffers(rendererData->d3dContext,
    1.10              0,
    1.11              1,