aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2024-11-17 16:26:34 +0100
committerAndre Weissflog <floooh@gmail.com>2024-11-17 16:26:34 +0100
commiteefc84ead8ad29909ec03e9c8d849f9174f4c3e7 (patch)
treea7e743528db8f92912aab40e990cb59dec5828a2
parent15b6dde7a17ea9b8d1dc7b0cd90ee4327fa07c52 (diff)
sokol_gfx.h gl: fix wrong cast in glTexImage*Multisample() calls
-rw-r--r--sokol_gfx.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sokol_gfx.h b/sokol_gfx.h
index b0f3eb61..3a4756a8 100644
--- a/sokol_gfx.h
+++ b/sokol_gfx.h
@@ -8531,7 +8531,7 @@ _SOKOL_PRIVATE sg_resource_state _sg_gl_create_image(_sg_image_t* img, const sg_
const GLenum gl_type = _sg_gl_teximage_type(img->cmn.pixel_format);
#if defined(SOKOL_GLCORE)
if (msaa) {
- glTexImage2DMultisample(gl_img_target, img->cmn.sample_count, (GLint)gl_internal_format,
+ glTexImage2DMultisample(gl_img_target, img->cmn.sample_count, gl_internal_format,
mip_width, mip_height, GL_TRUE);
} else {
glTexImage2D(gl_img_target, mip_index, (GLint)gl_internal_format,
@@ -8558,7 +8558,7 @@ _SOKOL_PRIVATE sg_resource_state _sg_gl_create_image(_sg_image_t* img, const sg_
#if defined(SOKOL_GLCORE)
if (msaa) {
// NOTE: only for array textures, not actual 3D textures!
- glTexImage3DMultisample(gl_img_target, img->cmn.sample_count, (GLint)gl_internal_format,
+ glTexImage3DMultisample(gl_img_target, img->cmn.sample_count, gl_internal_format,
mip_width, mip_height, mip_depth, GL_TRUE);
} else {
glTexImage3D(gl_img_target, mip_index, (GLint)gl_internal_format,