diff options
| author | Zach Hilman <DarkLordZach@users.noreply.github.com> | 2019-06-07 17:23:25 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-06-07 17:23:25 -0400 |
| commit | de33ad25f52960449a97caa2b25e37e6a35f0710 (patch) | |
| tree | 5f70bb84aafac68b6c34c95fec033528bff26d4e /src/video_core/renderer_opengl/gl_state.h | |
| parent | cd2d9628c99db1944b44b5699bfc40bee582301d (diff) | |
| parent | 6ac44907516a0fd4973a80b793b336c4cef2377a (diff) | |
Merge pull request #2514 from ReinUsesLisp/opengl-compat
video_core: Drop OpenGL core in favor of OpenGL compatibility
Diffstat (limited to 'src/video_core/renderer_opengl/gl_state.h')
| -rw-r--r-- | src/video_core/renderer_opengl/gl_state.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_state.h b/src/video_core/renderer_opengl/gl_state.h index 41418a7b8..b0140495d 100644 --- a/src/video_core/renderer_opengl/gl_state.h +++ b/src/video_core/renderer_opengl/gl_state.h @@ -172,6 +172,12 @@ public: GLfloat clamp; } polygon_offset; + struct { + bool enabled; // GL_ALPHA_TEST + GLenum func; // GL_ALPHA_TEST_FUNC + GLfloat ref; // GL_ALPHA_TEST_REF + } alpha_test; + std::array<bool, 8> clip_distance; // GL_CLIP_DISTANCE OpenGLState(); @@ -215,6 +221,7 @@ public: void ApplySamplers() const; void ApplyDepthClamp() const; void ApplyPolygonOffset() const; + void ApplyAlphaTest() const; /// Set the initial OpenGL state static void ApplyDefaultState(); |
