diff options
author | bunnei <bunneidev@gmail.com> | 2016-01-21 04:27:33 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2016-01-21 04:27:33 +0100 |
commit | 0b6cc0592dec5584d1a2211e9d777f0b2640faea (patch) | |
tree | 055bc437e6d0dbf37d7d6440ba4992be6c051e4e /src/video_core/renderer_opengl/gl_rasterizer.h | |
parent | Merge pull request #1363 from robturn/master (diff) | |
parent | hwrasterizer: Use depth offset (diff) | |
download | yuzu-0b6cc0592dec5584d1a2211e9d777f0b2640faea.tar yuzu-0b6cc0592dec5584d1a2211e9d777f0b2640faea.tar.gz yuzu-0b6cc0592dec5584d1a2211e9d777f0b2640faea.tar.bz2 yuzu-0b6cc0592dec5584d1a2211e9d777f0b2640faea.tar.lz yuzu-0b6cc0592dec5584d1a2211e9d777f0b2640faea.tar.xz yuzu-0b6cc0592dec5584d1a2211e9d777f0b2640faea.tar.zst yuzu-0b6cc0592dec5584d1a2211e9d777f0b2640faea.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_rasterizer.h')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.h b/src/video_core/renderer_opengl/gl_rasterizer.h index 92b1f812e..c8a2d8f16 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.h +++ b/src/video_core/renderer_opengl/gl_rasterizer.h @@ -197,7 +197,8 @@ private: std::array<GLfloat, 4> const_color[6]; std::array<GLfloat, 4> tev_combiner_buffer_color; GLint alphatest_ref; - INSERT_PADDING_BYTES(12); + GLfloat depth_offset; + INSERT_PADDING_BYTES(8); }; static_assert(sizeof(UniformData) == 0x80, "The size of the UniformData structure has changed, update the structure in the shader"); @@ -218,6 +219,9 @@ private: /// Syncs the cull mode to match the PICA register void SyncCullMode(); + /// Syncs the depth scale and offset to match the PICA registers + void SyncDepthModifiers(); + /// Syncs the blend enabled status to match the PICA register void SyncBlendEnabled(); |