aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2025-08-09 16:42:07 +0200
committerAndre Weissflog <floooh@gmail.com>2025-08-09 16:42:07 +0200
commit2a8f0dcfdaba716bef86a6bca2644f2bb2b4dba8 (patch)
treefccef75012b3d6572e8307dd52677ed500cedfa5
parent5992316eb52f689bce846caa7d5c15e00ff5da05 (diff)
sokol_gfx.h gl: fix a casting warning
-rw-r--r--sokol_gfx.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sokol_gfx.h b/sokol_gfx.h
index b1f8dd3e..56c2181d 100644
--- a/sokol_gfx.h
+++ b/sokol_gfx.h
@@ -9865,7 +9865,7 @@ _SOKOL_PRIVATE void _sg_gl_teximage(const _sg_image_t* img, GLenum tgt, int mip_
const GLenum fmt = _sg_gl_teximage_format(img->cmn.pixel_format);
#if defined(SOKOL_GLCORE)
if (msaa) {
- glTexImage2DMultisample(tgt, img->cmn.sample_count, (GLint)ifmt, w, h, GL_TRUE);
+ glTexImage2DMultisample(tgt, img->cmn.sample_count, (GLenum)ifmt, w, h, GL_TRUE);
} else {
glTexImage2D(tgt, mip_index, (GLint)ifmt, w, h, 0, fmt, type, data_ptr);
}
@@ -9884,7 +9884,7 @@ _SOKOL_PRIVATE void _sg_gl_teximage(const _sg_image_t* img, GLenum tgt, int mip_
#if defined(SOKOL_GLCORE)
if (msaa) {
// NOTE: MSAA works only for array textures, not 3D textures
- glTexImage3DMultisample(tgt, img->cmn.sample_count, (GLint)ifmt, w, h, depth, GL_TRUE);
+ glTexImage3DMultisample(tgt, img->cmn.sample_count, (GLenum)ifmt, w, h, depth, GL_TRUE);
} else {
glTexImage3D(tgt, mip_index, (GLint)ifmt, w, h, depth, 0, fmt, type, data_ptr);
}