Browse Source

sokol_gfx.h d3d11: don't clear D3D11 device state in sg_reset_state_cache() (fixes #1141)

Andre Weissflog 10 months ago
parent
commit
2c6fc7470e
1 changed files with 1 additions and 2 deletions
  1. 1 2
      sokol_gfx.h

+ 1 - 2
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) {