Skip to content

Commit

Permalink
Fix bug in setting certain uniforms in DX9. Fixes #9224
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Jan 21, 2017
1 parent ab9c1d4 commit b0697b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GPU/Directx9/ShaderManagerDX9.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit b0697b6

Please sign in to comment.