summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRye <rye@alchemyviewer.org>2025-10-14 07:45:46 -0400
committerRye <rye@alchemyviewer.org>2025-10-27 04:59:14 -0400
commit318c36bc3baae36d6f5fb41a5a0194e4c7d76c2a (patch)
treeb5006c98a1f2af12bfabbfa1b783bc007aeb7091
parent3848b7dde9385fa00e247206d7c0a7ea2f78682f (diff)
Fix detection of AMD gpu on linux
Signed-off-by: Rye <rye@alchemyviewer.org>
-rw-r--r--indra/llrender/llgl.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/llrender/llgl.cpp b/indra/llrender/llgl.cpp
index cccc334904..22d244d552 100644
--- a/indra/llrender/llgl.cpp
+++ b/indra/llrender/llgl.cpp
@@ -1132,7 +1132,11 @@ bool LLGLManager::initGL()
// Trailing space necessary to keep "nVidia Corpor_ati_on" cards
// from being recognized as ATI.
// NOTE: AMD has been pretty good about not breaking this check, do not rename without good reason
- if (mGLVendor.substr(0,4) == "ATI ")
+ if (mGLVendor.substr(0,4) == "ATI "
+#if LL_LINUX
+ || mGLVendor.find("AMD") != std::string::npos
+#endif //LL_LINUX
+ )
{
mGLVendorShort = "AMD";
// *TODO: Fix this?