color conversion: avoid type punning by returning SColor4ub directly. that required a non-extern-C declaration of the SSE function, so i replaced it with straightforward intrinsics.

ia32: no longer needs #if since build system ensures it's not compiled
on amd64

This was SVN commit r6164.
This commit is contained in:
janwas
2008-06-30 19:08:29 +00:00
parent 10a6ef4e17
commit b79375a0c5
7 changed files with 58 additions and 72 deletions
+1 -1
View File
@@ -376,7 +376,7 @@ void CPatchRData::BuildVertices()
RGBColor diffuse;
lightEnv.EvaluateDirect(normal, diffuse);
*(u32*)&vertices[v].m_DiffuseColor = ConvertRGBColorTo4ub(diffuse);
vertices[v].m_DiffuseColor = ConvertRGBColorTo4ub(diffuse);
}
}