mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-17 19:45:23 -04:00
Direct3D11: Fix particles, selected block outline, and bedrock border outside map not rendering with this one line trick
This commit is contained in:
parent
fbb2252608
commit
e37c0a01d8
@ -321,13 +321,13 @@ void* Gfx_LockDynamicVb(GfxResourceID vb, VertexFormat fmt, int count) {
|
|||||||
void Gfx_UnlockDynamicVb(GfxResourceID vb) {
|
void Gfx_UnlockDynamicVb(GfxResourceID vb) {
|
||||||
ID3D11Buffer* buffer = (ID3D11Buffer*)vb;
|
ID3D11Buffer* buffer = (ID3D11Buffer*)vb;
|
||||||
ID3D11DeviceContext_Unmap(context, buffer, 0);
|
ID3D11DeviceContext_Unmap(context, buffer, 0);
|
||||||
|
Gfx_BindVb(vb);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Gfx_SetDynamicVbData(GfxResourceID vb, void* vertices, int vCount) {
|
void Gfx_SetDynamicVbData(GfxResourceID vb, void* vertices, int vCount) {
|
||||||
void* data = Gfx_LockDynamicVb(vb, gfx_format, vCount);
|
void* data = Gfx_LockDynamicVb(vb, gfx_format, vCount);
|
||||||
Mem_Copy(data, vertices, vCount * gfx_stride);
|
Mem_Copy(data, vertices, vCount * gfx_stride);
|
||||||
Gfx_UnlockDynamicVb(vb);
|
Gfx_UnlockDynamicVb(vb);
|
||||||
Gfx_BindVb(vb);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user