mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-16 11:06:49 +01:00
WinRT: fixed a line-rendering bug in the D3D 11.1 backend
This commit is contained in:
parent
c72a4fa311
commit
fa45a9c953
@ -1539,7 +1539,7 @@ D3D11_RenderDrawLines(SDL_Renderer * renderer,
|
|||||||
|
|
||||||
D3D11_RenderStartDrawOp(renderer);
|
D3D11_RenderStartDrawOp(renderer);
|
||||||
D3D11_RenderSetBlendMode(renderer, renderer->blendMode);
|
D3D11_RenderSetBlendMode(renderer, renderer->blendMode);
|
||||||
if (D3D11_UpdateVertexBuffer(renderer,&vertices, (unsigned int)count * sizeof(VertexPositionColor)) != 0) {
|
if (D3D11_UpdateVertexBuffer(renderer, vertices, (unsigned int)count * sizeof(VertexPositionColor)) != 0) {
|
||||||
SDL_stack_free(vertices);
|
SDL_stack_free(vertices);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user