From 3fd4142f361bd6af2c147faf48e1d1d62d170067 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sun, 21 Jan 2018 00:59:10 +1000 Subject: OGL: Track state of last bound vertex array object This reduces the overhead of calling glBindVertexArray() every time RestoreAPIState() is called, even when it is redundant. --- Source/Core/VideoBackends/OGL/PostProcessing.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Source/Core/VideoBackends/OGL/PostProcessing.cpp') diff --git a/Source/Core/VideoBackends/OGL/PostProcessing.cpp b/Source/Core/VideoBackends/OGL/PostProcessing.cpp index 96e1974f88..57cdd158c4 100644 --- a/Source/Core/VideoBackends/OGL/PostProcessing.cpp +++ b/Source/Core/VideoBackends/OGL/PostProcessing.cpp @@ -5,7 +5,6 @@ #include "VideoBackends/OGL/PostProcessing.h" #include "Common/CommonTypes.h" -#include "Common/GL/GLUtil.h" #include "Common/Logging/Log.h" #include "Common/StringUtil.h" @@ -47,7 +46,7 @@ void OpenGLPostProcessing::BlitFromTexture(TargetRectangle src, TargetRectangle glViewport(dst.left, dst.bottom, dst.GetWidth(), dst.GetHeight()); - OpenGL_BindAttributelessVAO(); + ProgramShaderCache::BindVertexFormat(nullptr); m_shader.Bind(); -- cgit v1.2.3