diff options
| author | Andre Weissflog <floooh@gmail.com> | 2019-07-09 15:16:13 +0200 |
|---|---|---|
| committer | Andre Weissflog <floooh@gmail.com> | 2019-07-09 15:16:13 +0200 |
| commit | 3c5aa9f29a5e3605f5cb69d194666802e0735435 (patch) | |
| tree | 9f7ca2da8407fc9f59b5cb0b125561494f4c7485 /sokol_gfx.h | |
| parent | 5cf362abac281dcf0f1bf7805e5fe58f01296e36 (diff) | |
sokol_gfx.h: potential fix for #181
Diffstat (limited to 'sokol_gfx.h')
| -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 0aa68b10..78785b06 100644 --- a/sokol_gfx.h +++ b/sokol_gfx.h @@ -6743,7 +6743,7 @@ _SOKOL_PRIVATE void _sg_apply_uniforms(sg_shader_stage stage_index, int ub_index _SOKOL_UNUSED(num_bytes); SOKOL_ASSERT(_sg.d3d11.ctx && _sg.d3d11.in_pass); SOKOL_ASSERT(data && (num_bytes > 0)); - SOKOL_ASSERT((stage_index >= 0) && (stage_index < SG_NUM_SHADER_STAGES)); + SOKOL_ASSERT((stage_index >= 0) && ((int)stage_index < SG_NUM_SHADER_STAGES)); SOKOL_ASSERT((ub_index >= 0) && (ub_index < SG_MAX_SHADERSTAGE_UBS)); SOKOL_ASSERT(_sg.d3d11.cur_pipeline && _sg.d3d11.cur_pipeline->slot.id == _sg.d3d11.cur_pipeline_id.id); SOKOL_ASSERT(_sg.d3d11.cur_pipeline->shader && _sg.d3d11.cur_pipeline->shader->slot.id == _sg.d3d11.cur_pipeline->shader_id.id); |