aboutsummaryrefslogtreecommitdiff
path: root/sokol_gfx.h
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2025-11-27 19:30:36 +0100
committerAndre Weissflog <floooh@gmail.com>2025-11-27 19:30:36 +0100
commit18dc988ae893efefe0f8e3000777cc97164ad220 (patch)
treecfa236386aeb0cd22aaf01aae2eaa2c9b3b36759 /sokol_gfx.h
parentb7be6a6f865f00ed47414a9a57845e47b68489f2 (diff)
sokol_gfx.h gl: fix signed/unsigned warning on clang/gcc
Diffstat (limited to 'sokol_gfx.h')
-rw-r--r--sokol_gfx.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sokol_gfx.h b/sokol_gfx.h
index c3fe87b9..11d387e2 100644
--- a/sokol_gfx.h
+++ b/sokol_gfx.h
@@ -10927,7 +10927,7 @@ _SOKOL_PRIVATE void _sg_gl_begin_pass(const sg_pass* pass, const _sg_attachments
SOKOL_ASSERT(_sg.limits.max_color_attachments <= SG_MAX_COLOR_ATTACHMENTS);
for (int i = 0; i < _sg.limits.max_color_attachments; i++) {
if (i < atts->num_color_views) {
- gl_draw_bufs[i] = GL_COLOR_ATTACHMENT0 + i;
+ gl_draw_bufs[i] = (GLenum)(GL_COLOR_ATTACHMENT0 + i);
} else {
gl_draw_bufs[i] = GL_NONE;
}