浏览代码

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

Andre Weissflog 10 月之前
父节点
当前提交
2c6fc7470e
共有 1 个文件被更改,包括 1 次插入2 次删除
  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) {
 _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) {
 _SOKOL_PRIVATE sg_resource_state _sg_d3d11_create_buffer(_sg_buffer_t* buf, const sg_buffer_desc* desc) {