summaryrefslogtreecommitdiff
path: root/indra/llrender/llrender.cpp
diff options
context:
space:
mode:
authorJonathan "Geenz" Goodman <geenz@lindenlab.com>2025-11-05 11:01:05 -0500
committerGitHub <noreply@github.com>2025-11-05 11:01:05 -0500
commitfc9805fd63cccbc2d526ad803a17b43855be4aab (patch)
tree4d43823d6741f141cd70b080e833017a0370dcda /indra/llrender/llrender.cpp
parenta5bf53ffa4152d1e1e8b65edcd1ba318ec2d2f50 (diff)
parent6fccf062fba5873c00199d84d5daf7568a7734dc (diff)
Merge pull request #4935 from RyeMutt/rye/lnxfixlines
Improve fix for line width crashes under certain Mesa GL drivers
Diffstat (limited to 'indra/llrender/llrender.cpp')
-rw-r--r--indra/llrender/llrender.cpp9
1 files changed, 1 insertions, 8 deletions
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;