diff options
author | Rodolfo Bogado <rodolfoosvaldobogado@gmail.com> | 2018-11-21 04:40:32 +0100 |
---|---|---|
committer | Rodolfo Bogado <rodolfoosvaldobogado@gmail.com> | 2018-11-24 04:16:33 +0100 |
commit | 54c2a4cafc8fe11f83a61863d4b83ab152004881 (patch) | |
tree | 35328437511b440b825861c5c02c3e5d81f22f55 /src/video_core/renderer_opengl/gl_state.h | |
parent | Merge pull request #1744 from degasus/shader_cache (diff) | |
download | yuzu-54c2a4cafc8fe11f83a61863d4b83ab152004881.tar yuzu-54c2a4cafc8fe11f83a61863d4b83ab152004881.tar.gz yuzu-54c2a4cafc8fe11f83a61863d4b83ab152004881.tar.bz2 yuzu-54c2a4cafc8fe11f83a61863d4b83ab152004881.tar.lz yuzu-54c2a4cafc8fe11f83a61863d4b83ab152004881.tar.xz yuzu-54c2a4cafc8fe11f83a61863d4b83ab152004881.tar.zst yuzu-54c2a4cafc8fe11f83a61863d4b83ab152004881.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_state.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/video_core/renderer_opengl/gl_state.h b/src/video_core/renderer_opengl/gl_state.h index bdc743b0f..032fc43f0 100644 --- a/src/video_core/renderer_opengl/gl_state.h +++ b/src/video_core/renderer_opengl/gl_state.h @@ -156,10 +156,10 @@ public: } draw; struct viewport { - GLfloat x; - GLfloat y; - GLfloat width; - GLfloat height; + GLint x; + GLint y; + GLint width; + GLint height; GLfloat depth_range_near; // GL_DEPTH_RANGE GLfloat depth_range_far; // GL_DEPTH_RANGE struct { @@ -206,6 +206,7 @@ public: OpenGLState& ResetBuffer(GLuint handle); OpenGLState& ResetVertexArray(GLuint handle); OpenGLState& ResetFramebuffer(GLuint handle); + void EmulateViewportWithScissor(); private: static OpenGLState cur_state; |