aboutsummaryrefslogtreecommitdiff
path: root/sokol_gfx.h
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2018-07-23 12:07:28 +0200
committerAndre Weissflog <floooh@gmail.com>2018-07-23 12:07:43 +0200
commita427f8df7069d7b0302376fa1f7eba0f67e0e8b2 (patch)
tree8b67bcde087361e2d7a76eb649bef061549ab626 /sokol_gfx.h
parenta9d0462a2c87e1968fbc6dcf2f2737551f8f5599 (diff)
sokol_gfx: more VS /W4 warnings (unused stuff in release mode)
Diffstat (limited to 'sokol_gfx.h')
-rw-r--r--sokol_gfx.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sokol_gfx.h b/sokol_gfx.h
index 89a5de6b..7ff6c252 100644
--- a/sokol_gfx.h
+++ b/sokol_gfx.h
@@ -3672,6 +3672,9 @@ _SOKOL_PRIVATE void _sg_apply_draw_state(
{
SOKOL_ASSERT(pip);
SOKOL_ASSERT(pip->shader);
+ _SOKOL_UNUSED(num_fs_imgs);
+ _SOKOL_UNUSED(num_vs_imgs);
+ _SOKOL_UNUSED(num_vbs);
_SG_GL_CHECK_ERROR();
/* need to apply pipeline state? */
@@ -3920,6 +3923,7 @@ _SOKOL_PRIVATE void _sg_apply_draw_state(
}
_SOKOL_PRIVATE void _sg_apply_uniform_block(sg_shader_stage stage_index, int ub_index, const void* data, int num_bytes) {
+ _SOKOL_UNUSED(num_bytes);
SOKOL_ASSERT(data && (num_bytes > 0));
SOKOL_ASSERT((stage_index >= 0) && ((int)stage_index < SG_NUM_SHADER_STAGES));
SOKOL_ASSERT(_sg_gl.cache.cur_pipeline);