diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-05-22 01:28:09 +0200 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-05-30 18:21:01 +0200 |
commit | b76df62c00c28244f2fdd657b809853907f0070f (patch) | |
tree | dfba6fc3c4fa662f9ee6825595597596811873ec /src/video_core/renderer_opengl/gl_state.h | |
parent | gl_rasterizer: Use GL_QUADS to emulate quads rendering (diff) | |
download | yuzu-b76df62c00c28244f2fdd657b809853907f0070f.tar yuzu-b76df62c00c28244f2fdd657b809853907f0070f.tar.gz yuzu-b76df62c00c28244f2fdd657b809853907f0070f.tar.bz2 yuzu-b76df62c00c28244f2fdd657b809853907f0070f.tar.lz yuzu-b76df62c00c28244f2fdd657b809853907f0070f.tar.xz yuzu-b76df62c00c28244f2fdd657b809853907f0070f.tar.zst yuzu-b76df62c00c28244f2fdd657b809853907f0070f.zip |
Diffstat (limited to '')
-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(); |