mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-04 07:09:03 +00:00
msvc: resolve all warnings in VideoCommon.
This commit is contained in:
parent
043ea31f14
commit
4bf031c064
4 changed files with 31 additions and 23 deletions
|
@ -285,9 +285,10 @@ void VertexShaderManager::SetConstants()
|
|||
double(light.ddir[1]) * double(light.ddir[1]) +
|
||||
double(light.ddir[2]) * double(light.ddir[2]);
|
||||
norm = 1.0 / sqrt(norm);
|
||||
dstlight.dir[0] = light.ddir[0] * norm;
|
||||
dstlight.dir[1] = light.ddir[1] * norm;
|
||||
dstlight.dir[2] = light.ddir[2] * norm;
|
||||
float norm_float = static_cast<float>(norm);
|
||||
dstlight.dir[0] = light.ddir[0] * norm_float;
|
||||
dstlight.dir[1] = light.ddir[1] * norm_float;
|
||||
dstlight.dir[2] = light.ddir[2] * norm_float;
|
||||
}
|
||||
dirty = true;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue