summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl/gl_state.h
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2019-12-26 09:01:43 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-02-28 21:52:10 +0100
commit5ccb07933ac0f33d0ecb909d29bf65ee4ab70d8e (patch)
treed055b1d9cfa396a747c8d52023661a1e2cc4b063 /src/video_core/renderer_opengl/gl_state.h
parentgl_state: Remove image tracking (diff)
downloadyuzu-5ccb07933ac0f33d0ecb909d29bf65ee4ab70d8e.tar
yuzu-5ccb07933ac0f33d0ecb909d29bf65ee4ab70d8e.tar.gz
yuzu-5ccb07933ac0f33d0ecb909d29bf65ee4ab70d8e.tar.bz2
yuzu-5ccb07933ac0f33d0ecb909d29bf65ee4ab70d8e.tar.lz
yuzu-5ccb07933ac0f33d0ecb909d29bf65ee4ab70d8e.tar.xz
yuzu-5ccb07933ac0f33d0ecb909d29bf65ee4ab70d8e.tar.zst
yuzu-5ccb07933ac0f33d0ecb909d29bf65ee4ab70d8e.zip
Diffstat (limited to 'src/video_core/renderer_opengl/gl_state.h')
-rw-r--r--src/video_core/renderer_opengl/gl_state.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/video_core/renderer_opengl/gl_state.h b/src/video_core/renderer_opengl/gl_state.h
index 4e34fcfc2..c9a839736 100644
--- a/src/video_core/renderer_opengl/gl_state.h
+++ b/src/video_core/renderer_opengl/gl_state.h
@@ -14,14 +14,10 @@ namespace OpenGL {
class OpenGLState {
public:
struct {
- GLuint read_framebuffer = 0; // GL_READ_FRAMEBUFFER_BINDING
- GLuint draw_framebuffer = 0; // GL_DRAW_FRAMEBUFFER_BINDING
GLuint shader_program = 0; // GL_CURRENT_PROGRAM
GLuint program_pipeline = 0; // GL_PROGRAM_PIPELINE_BINDING
} draw;
- GLuint renderbuffer{}; // GL_RENDERBUFFER_BINDING
-
OpenGLState();
/// Get the currently active OpenGL state
@@ -32,16 +28,12 @@ public:
/// Apply this state as the current OpenGL state
void Apply();
- void ApplyFramebufferState();
void ApplyShaderProgram();
void ApplyProgramPipeline();
- void ApplyRenderBuffer();
/// Resets any references to the given resource
OpenGLState& ResetProgram(GLuint handle);
OpenGLState& ResetPipeline(GLuint handle);
- OpenGLState& ResetFramebuffer(GLuint handle);
- OpenGLState& ResetRenderbuffer(GLuint handle);
private:
static OpenGLState cur_state;