From e37c0a01d874aeeea2dc3742c5a04338dc0c4454 Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Sun, 24 Oct 2021 09:07:27 +1100 Subject: [PATCH] Direct3D11: Fix particles, selected block outline, and bedrock border outside map not rendering with this one line trick --- src/Graphics_D3D11.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Graphics_D3D11.c b/src/Graphics_D3D11.c index 3d5a42dca..73fb6d289 100644 --- a/src/Graphics_D3D11.c +++ b/src/Graphics_D3D11.c @@ -321,13 +321,13 @@ void* Gfx_LockDynamicVb(GfxResourceID vb, VertexFormat fmt, int count) { void Gfx_UnlockDynamicVb(GfxResourceID vb) { ID3D11Buffer* buffer = (ID3D11Buffer*)vb; ID3D11DeviceContext_Unmap(context, buffer, 0); + Gfx_BindVb(vb); } void Gfx_SetDynamicVbData(GfxResourceID vb, void* vertices, int vCount) { void* data = Gfx_LockDynamicVb(vb, gfx_format, vCount); Mem_Copy(data, vertices, vCount * gfx_stride); Gfx_UnlockDynamicVb(vb); - Gfx_BindVb(vb); }