aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2024-10-12 20:27:13 +0200
committerAndre Weissflog <floooh@gmail.com>2024-10-14 17:31:38 +0200
commit231d1986c92b9fb1d3b5c2bb2c2ac05e00fd2357 (patch)
tree80b377d9af4aa4f31f01ec7a7d8bfcafd1ab722c
parentd39703d21253c7219b665e63ad268a703b397600 (diff)
sokol_gfx.h wgpu: minor code cleanup
-rw-r--r--sokol_gfx.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sokol_gfx.h b/sokol_gfx.h
index 4d803c3f..51583415 100644
--- a/sokol_gfx.h
+++ b/sokol_gfx.h
@@ -14798,7 +14798,7 @@ _SOKOL_PRIVATE sg_resource_state _sg_wgpu_create_shader(_sg_shader_t* shd, const
bgl_entry->visibility = _sg_wgpu_shader_stage(shd->cmn.uniform_blocks[i].stage);
bgl_entry->buffer.type = WGPUBufferBindingType_Uniform;
bgl_entry->buffer.hasDynamicOffset = true;
- bg_entry->binding = bgl_entries[bgl_index].binding;
+ bg_entry->binding = bgl_entry->binding;
bg_entry->buffer = _sg.wgpu.uniform.buf;
bg_entry->size = _SG_WGPU_MAX_UNIFORM_UPDATE_SIZE;
bgl_index += 1;