summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorJonathan "Geenz" Goodman <geenz@lindenlab.com>2024-06-04 09:36:37 -0700
committerGitHub <noreply@github.com>2024-06-04 09:36:37 -0700
commit0f6ef1643e6149a40aa605ad8f44d89df843bd80 (patch)
tree3e629d48edb5182ef22a8ff4a7104803ac73cf48 /indra
parentd1a8a9d0c39bff726e8c298c5bad309055726a30 (diff)
Fix for AMD not being able to load pbrmetallicroughnessV. (#1620)
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/app_settings/shaders/class1/gltf/pbrmetallicroughnessV.glsl2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/app_settings/shaders/class1/gltf/pbrmetallicroughnessV.glsl b/indra/newview/app_settings/shaders/class1/gltf/pbrmetallicroughnessV.glsl
index 403ca8b2db..0ed1c5d315 100644
--- a/indra/newview/app_settings/shaders/class1/gltf/pbrmetallicroughnessV.glsl
+++ b/indra/newview/app_settings/shaders/class1/gltf/pbrmetallicroughnessV.glsl
@@ -115,7 +115,7 @@ mat4 getGLTFSkinTransform()
#ifdef IS_AMD_CARD
// If it's AMD make sure the GLSL compiler sees the arrays referenced once by static index. Otherwise it seems to optimise the storage awawy which leads to unfun crashes and artifacts.
mat3x4 dummy1 = gltf_joints[0];
- mat3x4 dummy2 = gltf_joints[MAX_JOINTS_PER_MESH_OBJECT-1];
+ mat3x4 dummy2 = gltf_joints[MAX_JOINTS_PER_GLTF_OBJECT-1];
#endif
}