From 2a8f0dcfdaba716bef86a6bca2644f2bb2b4dba8 Mon Sep 17 00:00:00 2001 From: Andre Weissflog Date: Sat, 9 Aug 2025 16:42:07 +0200 Subject: sokol_gfx.h gl: fix a casting warning --- sokol_gfx.h | 4 ++-- 1 file 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); } -- cgit v1.2.3