aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2025-08-09 17:05:06 +0200
committerAndre Weissflog <floooh@gmail.com>2025-08-09 17:05:06 +0200
commitf70899c7d6bd85df4a472f42a6fef1cd0bbcb689 (patch)
tree49de6d508df60fe3d97190d2db6c9171b9641ff0
parent2a8f0dcfdaba716bef86a6bca2644f2bb2b4dba8 (diff)
sokol_gfx.h gl: msaa textures are not actually supported on macOS (but were attempted to be created)
-rw-r--r--sokol_gfx.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/sokol_gfx.h b/sokol_gfx.h
index 56c2181d..390c1b25 100644
--- a/sokol_gfx.h
+++ b/sokol_gfx.h
@@ -9863,9 +9863,9 @@ _SOKOL_PRIVATE void _sg_gl_teximage(const _sg_image_t* img, GLenum tgt, int mip_
} else {
const GLenum type = _sg_gl_teximage_type(img->cmn.pixel_format);
const GLenum fmt = _sg_gl_teximage_format(img->cmn.pixel_format);
- #if defined(SOKOL_GLCORE)
+ #if defined(SOKOL_GLCORE) && !defined(__APPLE__)
if (msaa) {
- glTexImage2DMultisample(tgt, img->cmn.sample_count, (GLenum)ifmt, w, h, GL_TRUE);
+ glTexImage2DMultisample(tgt, img->cmn.sample_count, ifmt, w, h, GL_TRUE);
} else {
glTexImage2D(tgt, mip_index, (GLint)ifmt, w, h, 0, fmt, type, data_ptr);
}
@@ -9881,10 +9881,10 @@ _SOKOL_PRIVATE void _sg_gl_teximage(const _sg_image_t* img, GLenum tgt, int mip_
} else {
const GLenum type = _sg_gl_teximage_type(img->cmn.pixel_format);
const GLenum fmt = _sg_gl_teximage_format(img->cmn.pixel_format);
- #if defined(SOKOL_GLCORE)
+ #if defined(SOKOL_GLCORE) && !defined(__APPLE__)
if (msaa) {
// NOTE: MSAA works only for array textures, not 3D textures
- glTexImage3DMultisample(tgt, img->cmn.sample_count, (GLenum)ifmt, w, h, depth, GL_TRUE);
+ glTexImage3DMultisample(tgt, img->cmn.sample_count, ifmt, w, h, depth, GL_TRUE);
} else {
glTexImage3D(tgt, mip_index, (GLint)ifmt, w, h, depth, 0, fmt, type, data_ptr);
}