diff options
| author | Andre Weissflog <floooh@gmail.com> | 2025-12-09 20:01:16 +0100 |
|---|---|---|
| committer | Andre Weissflog <floooh@gmail.com> | 2025-12-09 20:01:16 +0100 |
| commit | d999d67ee63d4ba18d8ddd8fba2533e84c68382a (patch) | |
| tree | bb441fe2aeacdc109573fe5b5d63f8b6eada3ae7 | |
| parent | 50c8d6424c95e928833f73d25cd12d2306912f4c (diff) | |
sokol_gfx.h wgpu: remove unused vars in _sg_wgpu_apply_uniforms
| -rw-r--r-- | sokol_gfx.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sokol_gfx.h b/sokol_gfx.h index 22a2c501..520d5858 100644 --- a/sokol_gfx.h +++ b/sokol_gfx.h @@ -18511,8 +18511,6 @@ _SOKOL_PRIVATE void _sg_wgpu_apply_uniforms(int ub_slot, const sg_range* data) { SOKOL_ASSERT((ub_slot >= 0) && (ub_slot < SG_MAX_UNIFORMBLOCK_BINDSLOTS)); SOKOL_ASSERT((_sg.wgpu.uniform.offset + data->size) <= _sg.wgpu.uniform.num_bytes); SOKOL_ASSERT((_sg.wgpu.uniform.offset & (alignment - 1)) == 0); - const _sg_pipeline_t* pip = _sg_pipeline_ref_ptr(&_sg.cur_pip); - const _sg_shader_t* shd = _sg_shader_ref_ptr(&pip->cmn.shader); SOKOL_ASSERT(data->size == shd->cmn.uniform_blocks[ub_slot].size); SOKOL_ASSERT(data->size <= _SG_WGPU_MAX_UNIFORM_UPDATE_SIZE); |