diff options
| author | Andre Weissflog <floooh@gmail.com> | 2025-12-06 23:18:53 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-06 23:18:53 +0100 |
| commit | c9288d8495c5891c5275c0de9bd4fc3571d63bbc (patch) | |
| tree | 10d3fdd8a8723e3c87fa42165393506b4a20981c | |
| parent | e1d828353271b92fa2be3fd2d09e138e5627905f (diff) | |
| parent | 86224e500fabbf9336ab5fdf6c11d53879d8c1ba (diff) | |
Merge pull request #1396 from Julianiolo/fix_gl_storage_image
fix typo in _sg_gl_create_shader, leading to wrong bind slots being used
| -rw-r--r-- | sokol_gfx.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sokol_gfx.h b/sokol_gfx.h index 3778c50a..ef290235 100644 --- a/sokol_gfx.h +++ b/sokol_gfx.h @@ -10974,7 +10974,7 @@ _SOKOL_PRIVATE sg_resource_state _sg_gl_create_shader(_sg_shader_t* shd, const s if (view->storage_buffer.stage != SG_SHADERSTAGE_NONE) { shd->gl.sbuf_binding[i] = view->storage_buffer.glsl_binding_n; } else if (view->storage_image.stage != SG_SHADERSTAGE_NONE) { - shd->gl.simg_binding[i] = view->storage_buffer.glsl_binding_n; + shd->gl.simg_binding[i] = view->storage_image.glsl_binding_n; } } |