diff options
| author | Shawn Hoffman <godisgovernment@gmail.com> | 2014-08-19 20:16:50 -0700 |
|---|---|---|
| committer | Shawn Hoffman <godisgovernment@gmail.com> | 2014-08-19 22:33:46 -0700 |
| commit | 4bf031c0646e91b35777f1ba4e2b0328063bb666 (patch) | |
| tree | 9a98fccbb90d608ff1746e4bc8c47bf7819526f3 /Source/Core/VideoCommon/VertexShaderManager.cpp | |
| parent | 043ea31f14a330bfdddfb6d5ab14794675efdd74 (diff) | |
msvc: resolve all warnings in VideoCommon.
Diffstat (limited to 'Source/Core/VideoCommon/VertexShaderManager.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/VertexShaderManager.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/VertexShaderManager.cpp b/Source/Core/VideoCommon/VertexShaderManager.cpp index 6fc187726f..112c2498c9 100644 --- a/Source/Core/VideoCommon/VertexShaderManager.cpp +++ b/Source/Core/VideoCommon/VertexShaderManager.cpp @@ -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; |
