From 2c6fc7470e9b9121a178e6e68c55f2f06fac4647 Mon Sep 17 00:00:00 2001 From: Andre Weissflog Date: Fri, 15 Nov 2024 17:20:10 +0100 Subject: [PATCH] sokol_gfx.h d3d11: don't clear D3D11 device state in sg_reset_state_cache() (fixes #1141) --- sokol_gfx.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sokol_gfx.h b/sokol_gfx.h index 6a7dbe6e4..9deb1763a 100644 --- a/sokol_gfx.h +++ b/sokol_gfx.h @@ -10523,8 +10523,7 @@ _SOKOL_PRIVATE void _sg_d3d11_clear_state(void) { } _SOKOL_PRIVATE void _sg_d3d11_reset_state_cache(void) { - // just clear the d3d11 device context state - _sg_d3d11_clear_state(); + // there's currently no state cache in the D3D11 backend, so this is a no-op } _SOKOL_PRIVATE sg_resource_state _sg_d3d11_create_buffer(_sg_buffer_t* buf, const sg_buffer_desc* desc) {