Skip to content

Commit 06ffd17

Browse files
committed
add TextureMultisample cap to macos with gl > 3.2
1 parent c110698 commit 06ffd17

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

jme3-core/src/main/java/com/jme3/renderer/opengl/GLRenderer.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,9 @@ private void loadCapabilitiesCommon() {
516516
limits.put(Limits.FrameBufferSamples, getInteger(GLExt.GL_MAX_SAMPLES_EXT));
517517
}
518518

519-
if (hasExtension("GL_ARB_texture_multisample") || caps.contains(Caps.OpenGLES31)) { // GLES31 does not fully support it
519+
if (hasExtension("GL_ARB_texture_multisample") || caps.contains(Caps.OpenGLES31)
520+
|| (JmeSystem.getPlatform().getOs() == Platform.Os.MacOS
521+
&& caps.contains(Caps.OpenGL32))) { // GLES31 does not fully support it
520522
caps.add(Caps.TextureMultisample);
521523
limits.put(Limits.ColorTextureSamples, getInteger(GLExt.GL_MAX_COLOR_TEXTURE_SAMPLES));
522524
limits.put(Limits.DepthTextureSamples, getInteger(GLExt.GL_MAX_DEPTH_TEXTURE_SAMPLES));

0 commit comments

Comments
 (0)