summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl/gl_state.h
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2019-05-22 01:28:09 +0200
committerReinUsesLisp <reinuseslisp@airmail.cc>2019-05-30 18:21:01 +0200
commitb76df62c00c28244f2fdd657b809853907f0070f (patch)
treedfba6fc3c4fa662f9ee6825595597596811873ec /src/video_core/renderer_opengl/gl_state.h
parentgl_rasterizer: Use GL_QUADS to emulate quads rendering (diff)
downloadyuzu-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.h7
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();