summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2023-09-07 21:14:07 +0800
committerErik Kundiman <erik@megapahit.org>2023-09-07 21:14:07 +0800
commitb47d2a1c0e432483d93693de58956367a3c935d6 (patch)
tree27863167af076cab86159f9b312bf94fcdc2052b /indra
parentd0b773094d5a3129f5b6db7d9de0da41791b2852 (diff)
Bring back GL_MULTISAMPLE_ARB to macOS
since it doesn't have GL_MULTISAMPLE_EXT.
Diffstat (limited to 'indra')
-rw-r--r--indra/llrender/llgl.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/llrender/llgl.cpp b/indra/llrender/llgl.cpp
index f597b1a932..5ad8e7f5df 100644
--- a/indra/llrender/llgl.cpp
+++ b/indra/llrender/llgl.cpp
@@ -1621,8 +1621,13 @@ void LLGLState::initClass()
// sStateMap[GL_TEXTURE_2D] = GL_TRUE;
//make sure multisample defaults to disabled
+#if GL_ARB_multisample
+ sStateMap[GL_MULTISAMPLE_ARB] = GL_FALSE;
+ glDisable(GL_MULTISAMPLE_ARB);
+#else
sStateMap[GL_MULTISAMPLE_EXT] = GL_FALSE;
glDisable(GL_MULTISAMPLE_EXT);
+#endif
}
//static