Skip to content

Commit

Permalink
fix GL3 fallback on mac intel gpu systems. #3145 (#3159)
Browse files Browse the repository at this point in the history
  • Loading branch information
brad-linden authored Nov 26, 2024
1 parent ca5119d commit 3d9ee40
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion indra/newview/llfeaturemanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -655,8 +655,16 @@ void LLFeatureManager::applyBaseMasks()
if (gGLManager.mIsIntel)
{
maskFeatures("Intel");

static constexpr F32 TARGET_GL_VERSION =
#if LL_DARWIN
4.09f;
#else
4.59f;
#endif

// check against 3.33 to avoid applying this fallback twice
if (gGLManager.mGLVersion < 4.59f && gGLManager.mGLVersion > 3.33f)
if (gGLManager.mGLVersion < TARGET_GL_VERSION && gGLManager.mGLVersion > 3.33f)
{
// if we don't have OpenGL 4.6 on intel, set it to OpenGL 3.3
// we also want to trigger the GL3 fallbacks on these chipsets
Expand Down

0 comments on commit 3d9ee40

Please sign in to comment.