summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl/gl_state.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-11-01 20:53:33 +0100
committerGitHub <noreply@github.com>2018-11-01 20:53:33 +0100
commitcc1fe9329754925eedc5f84fc2f41ba968571640 (patch)
tree8283ca2239a16027ad935e5806550cd2b31f531a /src/video_core/renderer_opengl/gl_state.h
parentMerge pull request #1527 from FernandoS27/assert-flow (diff)
parentImprove OpenGL state handling (diff)
downloadyuzu-cc1fe9329754925eedc5f84fc2f41ba968571640.tar
yuzu-cc1fe9329754925eedc5f84fc2f41ba968571640.tar.gz
yuzu-cc1fe9329754925eedc5f84fc2f41ba968571640.tar.bz2
yuzu-cc1fe9329754925eedc5f84fc2f41ba968571640.tar.lz
yuzu-cc1fe9329754925eedc5f84fc2f41ba968571640.tar.xz
yuzu-cc1fe9329754925eedc5f84fc2f41ba968571640.tar.zst
yuzu-cc1fe9329754925eedc5f84fc2f41ba968571640.zip
Diffstat (limited to 'src/video_core/renderer_opengl/gl_state.h')
-rw-r--r--src/video_core/renderer_opengl/gl_state.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_state.h b/src/video_core/renderer_opengl/gl_state.h
index 9e2c573b5..fe648aff6 100644
--- a/src/video_core/renderer_opengl/gl_state.h
+++ b/src/video_core/renderer_opengl/gl_state.h
@@ -173,7 +173,8 @@ public:
}
/// Apply this state as the current OpenGL state
void Apply() const;
-
+ /// Set the initial OpenGL state
+ static void ApplyDefaultState();
/// Resets any references to the given resource
OpenGLState& UnbindTexture(GLuint handle);
OpenGLState& ResetSampler(GLuint handle);
@@ -188,6 +189,16 @@ private:
// Workaround for sRGB problems caused by
// QT not supporting srgb output
static bool s_rgb_used;
+ void ApplySRgb() const;
+ void ApplyCulling() const;
+ void ApplyDepth() const;
+ void ApplyPrimitiveRestart() const;
+ void ApplyStencilTest() const;
+ void ApplyScissorTest() const;
+ void ApplyBlending() const;
+ void ApplyLogicOp() const;
+ void ApplyTextures() const;
+ void ApplySamplers() const;
};
} // namespace OpenGL