summaryrefslogtreecommitdiff
path: root/indra/llrender/llrender.cpp
diff options
context:
space:
mode:
authorRye <rye@alchemyviewer.org>2025-11-04 23:48:19 -0500
committerRye <rye@alchemyviewer.org>2025-11-04 23:56:51 -0500
commit6fccf062fba5873c00199d84d5daf7568a7734dc (patch)
tree0cd9f690643a64dc0462a8659cde14819cd86247 /indra/llrender/llrender.cpp
parent82a924829157f36bf186aadb24689670faf6b47d (diff)
Improve fix for line width crashes under certain Mesa GL drivers
We default to and only use aliased lines. Signed-off-by: Rye <rye@alchemyviewer.org>
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;