mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2025-01-12 05:41:10 +01:00
d3d11: Fixed VB state, avoiding unnecessary recreation (Thanks, Alex!).
Fixes Bugzilla #4779.
This commit is contained in:
parent
6c295129ba
commit
a3804ba1da
@ -1862,6 +1862,8 @@ D3D11_UpdateVertexBuffer(SDL_Renderer *renderer,
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
rendererData->vertexBufferSizes[vbidx] = dataSizeInBytes;
|
||||||
|
|
||||||
ID3D11DeviceContext_IASetVertexBuffers(rendererData->d3dContext,
|
ID3D11DeviceContext_IASetVertexBuffers(rendererData->d3dContext,
|
||||||
0,
|
0,
|
||||||
1,
|
1,
|
||||||
|
Loading…
Reference in New Issue
Block a user