summaryrefslogtreecommitdiffstats
path: root/src/video_core/clipper.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2015-12-17 05:23:50 +0100
committerbunnei <bunneidev@gmail.com>2016-02-05 23:20:22 +0100
commita949fd5f2560b94dc8e8571497d0cfbebdb6bed7 (patch)
treeeab5c9fc98630fbb6e3934f43a8da5b70ec6237f /src/video_core/clipper.cpp
parentcommand_processor: Add an assertion to ensure LUTs are not written past their boundaries. (diff)
downloadyuzu-a949fd5f2560b94dc8e8571497d0cfbebdb6bed7.tar
yuzu-a949fd5f2560b94dc8e8571497d0cfbebdb6bed7.tar.gz
yuzu-a949fd5f2560b94dc8e8571497d0cfbebdb6bed7.tar.bz2
yuzu-a949fd5f2560b94dc8e8571497d0cfbebdb6bed7.tar.lz
yuzu-a949fd5f2560b94dc8e8571497d0cfbebdb6bed7.tar.xz
yuzu-a949fd5f2560b94dc8e8571497d0cfbebdb6bed7.tar.zst
yuzu-a949fd5f2560b94dc8e8571497d0cfbebdb6bed7.zip
Diffstat (limited to 'src/video_core/clipper.cpp')
-rw-r--r--src/video_core/clipper.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/video_core/clipper.cpp b/src/video_core/clipper.cpp
index 3a09d62f4..a385589d2 100644
--- a/src/video_core/clipper.cpp
+++ b/src/video_core/clipper.cpp
@@ -59,12 +59,12 @@ static void InitScreenCoordinates(OutputVertex& vtx)
} viewport;
const auto& regs = g_state.regs;
- viewport.halfsize_x = float24::FromRawFloat24(regs.viewport_size_x);
- viewport.halfsize_y = float24::FromRawFloat24(regs.viewport_size_y);
+ viewport.halfsize_x = float24::FromRaw(regs.viewport_size_x);
+ viewport.halfsize_y = float24::FromRaw(regs.viewport_size_y);
viewport.offset_x = float24::FromFloat32(static_cast<float>(regs.viewport_corner.x));
viewport.offset_y = float24::FromFloat32(static_cast<float>(regs.viewport_corner.y));
- viewport.zscale = float24::FromRawFloat24(regs.viewport_depth_range);
- viewport.offset_z = float24::FromRawFloat24(regs.viewport_depth_far_plane);
+ viewport.zscale = float24::FromRaw(regs.viewport_depth_range);
+ viewport.offset_z = float24::FromRaw(regs.viewport_depth_far_plane);
float24 inv_w = float24::FromFloat32(1.f) / vtx.pos.w;
vtx.color *= inv_w;