diff options
| author | 2015-08-23 22:03:07 +0200 | |
|---|---|---|
| committer | 2015-08-23 22:03:07 +0200 | |
| commit | 03c5cfead4a6ad75097e736062b25f9a7e6082cd (patch) | |
| tree | bc611c82bd9b68b24885e5d4611b3021c6501fe7 /src | |
| parent | Shader: RCP and RSQ computes only the 1st component (diff) | |
| download | yuzu-03c5cfead4a6ad75097e736062b25f9a7e6082cd.tar.gz yuzu-03c5cfead4a6ad75097e736062b25f9a7e6082cd.tar.xz yuzu-03c5cfead4a6ad75097e736062b25f9a7e6082cd.zip | |
Shader: Use std::sqrt for float instead of sqrt
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/shader/shader_interpreter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/shader/shader_interpreter.cpp b/src/video_core/shader/shader_interpreter.cpp index 51fee6f97..76fda95f3 100644 --- a/src/video_core/shader/shader_interpreter.cpp +++ b/src/video_core/shader/shader_interpreter.cpp | |||
| @@ -237,7 +237,7 @@ void RunInterpreter(UnitState<Debug>& state) { | |||
| 237 | { | 237 | { |
| 238 | Record<DebugDataRecord::SRC1>(state.debug, iteration, src1); | 238 | Record<DebugDataRecord::SRC1>(state.debug, iteration, src1); |
| 239 | Record<DebugDataRecord::DEST_IN>(state.debug, iteration, dest); | 239 | Record<DebugDataRecord::DEST_IN>(state.debug, iteration, dest); |
| 240 | float24 rsq_res = float24::FromFloat32(1.0f / sqrt(src1[0].ToFloat32())); | 240 | float24 rsq_res = float24::FromFloat32(1.0f / std::sqrt(src1[0].ToFloat32())); |
| 241 | for (int i = 0; i < 4; ++i) { | 241 | for (int i = 0; i < 4; ++i) { |
| 242 | if (!swizzle.DestComponentEnabled(i)) | 242 | if (!swizzle.DestComponentEnabled(i)) |
| 243 | continue; | 243 | continue; |