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/llrender.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'indra/llrender/llrender.cpp') diff --git a/indra/llrender/llrender.cpp b/indra/llrender/llrender.cpp index 0d7ebd4a25..ab88e4868e 100644 --- a/indra/llrender/llrender.cpp +++ b/indra/llrender/llrender.cpp @@ -1930,14 +1930,7 @@ void LLRender::setLineWidth(F32 width) { gGL.flush(); - if(sGLCoreProfile) - { - width = 1.f; - } - else - { - width = llclamp(width, gGLManager.mMinSmoothLineWidth, gGLManager.mMaxSmoothLineWidth); - } + width = llclamp(width, gGLManager.mAliasedLineRange[0], gGLManager.mAliasedLineRange[1]); if(mLineWidth != width) { mLineWidth = width; -- cgit v1.3