Fix bug in setting certain uniforms in DX9. Fixes #9224

This commit is contained in:
Henrik Rydgard 2017-01-21 21:54:42 +01:00
parent ab9c1d4dc0
commit b0697b62d7

View File

@ -204,7 +204,7 @@ void ShaderManagerDX9::VSSetFloatUniform4(int creg, float data[4]) {
void ShaderManagerDX9::VSSetFloat24Uniform3(int creg, const u32 data[3]) {
const u32 col[4] = {
data[0] >> 8, data[1] >> 8, data[2] >> 8, 0
data[0] << 8, data[1] << 8, data[2] << 8, 0
};
pD3Ddevice->SetVertexShaderConstantF(creg, (const float *)&col[0], 1);
}