Skip to content

Commit

Permalink
sokol_gfx.h d3d11: don't clear D3D11 device state in sg_reset_state_c…
Browse files Browse the repository at this point in the history
…ache() (fixes #1141)
  • Loading branch information
floooh committed Nov 15, 2024
1 parent a5329cf commit 2c6fc74
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sokol_gfx.h
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 2c6fc74

Please sign in to comment.