From 6fccf062fba5873c00199d84d5daf7568a7734dc Mon Sep 17 00:00:00 2001 From: Rye Date: Tue, 4 Nov 2025 23:48:19 -0500 Subject: Improve fix for line width crashes under certain Mesa GL drivers We default to and only use aliased lines. Signed-off-by: Rye --- indra/llrender/llgl.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'indra/llrender/llgl.cpp') diff --git a/indra/llrender/llgl.cpp b/indra/llrender/llgl.cpp index c45ad70758..260f787a51 100644 --- a/indra/llrender/llgl.cpp +++ b/indra/llrender/llgl.cpp @@ -1329,11 +1329,7 @@ bool LLGLManager::initGL() glGetIntegerv(GL_MAX_UNIFORM_BLOCK_SIZE, &mMaxUniformBlockSize); // If outside the allowed range, glLineWidth fails with "invalid value". - // On Darwin, the range is [1, 1]. - GLfloat line_width_range[2]{0.f}; - glGetFloatv(GL_SMOOTH_LINE_WIDTH_RANGE, line_width_range); - mMinSmoothLineWidth = line_width_range[0]; - mMaxSmoothLineWidth = line_width_range[1]; + glGetFloatv(GL_ALIASED_LINE_WIDTH_RANGE, mAliasedLineRange.mV); // sanity clamp max uniform block size to 64k just in case // there's some implementation that reports a crazy value -- cgit v1.3