Skip to content

Commit 3d9ee40

Browse files
authored
fix GL3 fallback on mac intel gpu systems. #3145 (#3159)
1 parent ca5119d commit 3d9ee40

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

indra/newview/llfeaturemanager.cpp

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,8 +655,16 @@ void LLFeatureManager::applyBaseMasks()
655655
if (gGLManager.mIsIntel)
656656
{
657657
maskFeatures("Intel");
658+
659+
static constexpr F32 TARGET_GL_VERSION =
660+
#if LL_DARWIN
661+
4.09f;
662+
#else
663+
4.59f;
664+
#endif
665+
658666
// check against 3.33 to avoid applying this fallback twice
659-
if (gGLManager.mGLVersion < 4.59f && gGLManager.mGLVersion > 3.33f)
667+
if (gGLManager.mGLVersion < TARGET_GL_VERSION && gGLManager.mGLVersion > 3.33f)
660668
{
661669
// if we don't have OpenGL 4.6 on intel, set it to OpenGL 3.3
662670
// we also want to trigger the GL3 fallbacks on these chipsets

0 commit comments

Comments
 (0)