diff options
| author | bunnei <bunneidev@gmail.com> | 2019-11-15 12:09:19 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-11-15 12:09:19 -0500 |
| commit | a8295d2c533d1628887bd45d3bfd8adb66281834 (patch) | |
| tree | ddfd5d15ff0a055cdd4b4aa5df85c0b2bfc56713 /src/video_core/renderer_opengl/gl_state.h | |
| parent | 3e0e4f146b3f2ad7f1935a61141c38cdce87e04f (diff) | |
| parent | e9d2fad9849ff7fba8d63a16c838b79a3e752327 (diff) | |
Merge pull request #3047 from ReinUsesLisp/clip-control
gl_rasterizer: Emulate viewport flipping with ARB_clip_control
Diffstat (limited to 'src/video_core/renderer_opengl/gl_state.h')
| -rw-r--r-- | src/video_core/renderer_opengl/gl_state.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_state.h b/src/video_core/renderer_opengl/gl_state.h index cca25206b..eaff22bda 100644 --- a/src/video_core/renderer_opengl/gl_state.h +++ b/src/video_core/renderer_opengl/gl_state.h @@ -146,6 +146,10 @@ public: std::array<bool, 8> clip_distance = {}; // GL_CLIP_DISTANCE + struct { + GLenum origin = GL_LOWER_LEFT; + } clip_control; + OpenGLState(); /// Get the currently active OpenGL state @@ -182,6 +186,7 @@ public: void ApplyDepthClamp(); void ApplyPolygonOffset(); void ApplyAlphaTest(); + void ApplyClipControl(); /// Resets any references to the given resource OpenGLState& UnbindTexture(GLuint handle); |
