summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl/gl_state.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2015-08-11 23:19:45 +0200
committerbunnei <bunneidev@gmail.com>2015-08-11 23:19:45 +0200
commit93f607f5497a5fee142a0d2010881444a4ff0c80 (patch)
tree3728be088656eed0f4d53fde0f4ca194d640bf82 /src/video_core/renderer_opengl/gl_state.h
parentMerge pull request #1028 from aroulin/arm-disas-media-instr (diff)
parentOpenGL: Fix state tracking in situations with reused object handles (diff)
downloadyuzu-93f607f5497a5fee142a0d2010881444a4ff0c80.tar
yuzu-93f607f5497a5fee142a0d2010881444a4ff0c80.tar.gz
yuzu-93f607f5497a5fee142a0d2010881444a4ff0c80.tar.bz2
yuzu-93f607f5497a5fee142a0d2010881444a4ff0c80.tar.lz
yuzu-93f607f5497a5fee142a0d2010881444a4ff0c80.tar.xz
yuzu-93f607f5497a5fee142a0d2010881444a4ff0c80.tar.zst
yuzu-93f607f5497a5fee142a0d2010881444a4ff0c80.zip
Diffstat (limited to 'src/video_core/renderer_opengl/gl_state.h')
-rw-r--r--src/video_core/renderer_opengl/gl_state.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_state.h b/src/video_core/renderer_opengl/gl_state.h
index 26b916360..3e2379021 100644
--- a/src/video_core/renderer_opengl/gl_state.h
+++ b/src/video_core/renderer_opengl/gl_state.h
@@ -53,7 +53,6 @@ public:
// 3 texture units - one for each that is used in PICA fragment shader emulation
struct {
- bool enabled_2d; // GL_TEXTURE_2D
GLuint texture_2d; // GL_TEXTURE_BINDING_2D
} texture_units[3];
@@ -74,6 +73,12 @@ public:
/// Apply this state as the current OpenGL state
void Apply();
+ static void ResetTexture(GLuint id);
+ static void ResetProgram(GLuint id);
+ static void ResetBuffer(GLuint id);
+ static void ResetVertexArray(GLuint id);
+ static void ResetFramebuffer(GLuint id);
+
private:
static OpenGLState cur_state;
};