diff options
| author | tfarley <tfarleygithub@gmail.com> | 2016-01-03 15:46:54 -0800 |
|---|---|---|
| committer | tfarley <tfarleygithub@gmail.com> | 2016-01-20 21:57:59 -0500 |
| commit | f53dbafdae6b6ca8ab718d2299437df469441389 (patch) | |
| tree | ddf1b234c2440f8ade62be48ddf1e32ee22c8801 /src/video_core/renderer_opengl/gl_rasterizer.h | |
| parent | 190b1bbf1f016af01168d01be851b5829ee4a149 (diff) | |
hwrasterizer: Use depth offset
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(); |
