WIP[win64]: Sync this snipped with upstream to avoid texture indexing issues on Windows 64

This commit is contained in:
Latif Khalifa
2013-10-21 15:56:13 +02:00
parent 93e62a375c
commit ea6adb7ae4

View File

@@ -1860,15 +1860,12 @@ BOOL LLFace::getGeometryVolume(const LLVolume& volume,
LLVector4a texIdx;
U8 index = mTextureIndex < 255 ? mTextureIndex : 0;
S32 index = mTextureIndex < 255 ? mTextureIndex : 0;
F32 val = 0.f;
U8* vp = (U8*) &val;
vp[0] = index;
vp[1] = 0;
vp[2] = 0;
vp[3] = 0;
S32* vp = (S32*) &val;
*vp = index;
llassert(index <= LLGLSLShader::sIndexedTextureChannels-1);
LLVector4Logical mask;