Skip to content
Snippets Groups Projects
Commit 2bf5d036 authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Fix undefined GL behavior upon copying 12 byte value into 16 byte uniform

parent da672156
No related branches found
No related tags found
No related merge requests found
...@@ -1206,8 +1206,8 @@ void LLRender::syncLightState() ...@@ -1206,8 +1206,8 @@ void LLRender::syncLightState()
LLVector4 position[8]; LLVector4 position[8];
LLVector3 direction[8]; LLVector3 direction[8];
LLVector4 attenuation[8]; LLVector4 attenuation[8];
LLVector3 diffuse[8]; LLVector4 diffuse[8];
LLVector3 diffuse_b[8]; LLVector4 diffuse_b[8];
bool sun_primary[8]; bool sun_primary[8];
for (U32 i = 0; i < 8; i++) for (U32 i = 0; i < 8; i++)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment