summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl/gl_state.cpp
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2019-12-26 04:16:52 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-02-28 20:54:37 +0100
commitd5ab0358b64266be928a15265c4071744eed061e (patch)
tree8d74382750f819bceaa84a9678ea7b508d8dc6bb /src/video_core/renderer_opengl/gl_state.cpp
parentgl_state: Remove depth clamp tracking (diff)
downloadyuzu-d5ab0358b64266be928a15265c4071744eed061e.tar
yuzu-d5ab0358b64266be928a15265c4071744eed061e.tar.gz
yuzu-d5ab0358b64266be928a15265c4071744eed061e.tar.bz2
yuzu-d5ab0358b64266be928a15265c4071744eed061e.tar.lz
yuzu-d5ab0358b64266be928a15265c4071744eed061e.tar.xz
yuzu-d5ab0358b64266be928a15265c4071744eed061e.tar.zst
yuzu-d5ab0358b64266be928a15265c4071744eed061e.zip
Diffstat (limited to 'src/video_core/renderer_opengl/gl_state.cpp')
-rw-r--r--src/video_core/renderer_opengl/gl_state.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/video_core/renderer_opengl/gl_state.cpp b/src/video_core/renderer_opengl/gl_state.cpp
index 6b5eea342..1c39e7fba 100644
--- a/src/video_core/renderer_opengl/gl_state.cpp
+++ b/src/video_core/renderer_opengl/gl_state.cpp
@@ -98,12 +98,6 @@ void OpenGLState::ApplyFramebufferState() {
}
}
-void OpenGLState::ApplyVertexArrayState() {
- if (UpdateValue(cur_state.draw.vertex_array, draw.vertex_array)) {
- glBindVertexArray(draw.vertex_array);
- }
-}
-
void OpenGLState::ApplyShaderProgram() {
if (UpdateValue(cur_state.draw.shader_program, draw.shader_program)) {
glUseProgram(draw.shader_program);
@@ -338,7 +332,6 @@ void OpenGLState::ApplyImages() {
void OpenGLState::Apply() {
MICROPROFILE_SCOPE(OpenGL_State);
ApplyFramebufferState();
- ApplyVertexArrayState();
ApplyShaderProgram();
ApplyProgramPipeline();
ApplyClipDistances();
@@ -411,13 +404,6 @@ OpenGLState& OpenGLState::ResetPipeline(GLuint handle) {
return *this;
}
-OpenGLState& OpenGLState::ResetVertexArray(GLuint handle) {
- if (draw.vertex_array == handle) {
- draw.vertex_array = 0;
- }
- return *this;
-}
-
OpenGLState& OpenGLState::ResetFramebuffer(GLuint handle) {
if (draw.read_framebuffer == handle) {
draw.read_framebuffer = 0;