diff options
author | Jannik Vogel <email@jannikvogel.de> | 2016-03-20 01:53:49 +0100 |
---|---|---|
committer | Jannik Vogel <email@jannikvogel.de> | 2016-05-10 08:58:52 +0200 |
commit | 4c98113b572551f34a907094ca059de8a724c9b1 (patch) | |
tree | fb9f11a97913786f7ff559a1e1045b864f0aa935 /src/video_core/renderer_opengl/gl_rasterizer.cpp | |
parent | Merge pull request #1704 from JayFoxRox/pod-config (diff) | |
download | yuzu-4c98113b572551f34a907094ca059de8a724c9b1.tar yuzu-4c98113b572551f34a907094ca059de8a724c9b1.tar.gz yuzu-4c98113b572551f34a907094ca059de8a724c9b1.tar.bz2 yuzu-4c98113b572551f34a907094ca059de8a724c9b1.tar.lz yuzu-4c98113b572551f34a907094ca059de8a724c9b1.tar.xz yuzu-4c98113b572551f34a907094ca059de8a724c9b1.tar.zst yuzu-4c98113b572551f34a907094ca059de8a724c9b1.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_rasterizer.cpp')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp index 0b471dfd2..5fc885961 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp @@ -256,7 +256,7 @@ void RasterizerOpenGL::NotifyPicaRegisterChanged(u32 id) { // Depth modifiers case PICA_REG_INDEX(viewport_depth_range): - case PICA_REG_INDEX(viewport_depth_far_plane): + case PICA_REG_INDEX(viewport_depth_near_plane): SyncDepthModifiers(); break; @@ -911,7 +911,7 @@ void RasterizerOpenGL::SyncCullMode() { void RasterizerOpenGL::SyncDepthModifiers() { float depth_scale = -Pica::float24::FromRaw(Pica::g_state.regs.viewport_depth_range).ToFloat32(); - float depth_offset = Pica::float24::FromRaw(Pica::g_state.regs.viewport_depth_far_plane).ToFloat32() / 2.0f; + float depth_offset = Pica::float24::FromRaw(Pica::g_state.regs.viewport_depth_near_plane).ToFloat32() / 2.0f; // TODO: Implement scale modifier uniform_block_data.data.depth_offset = depth_offset; |