summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/OGL/PostProcessing.cpp
diff options
context:
space:
mode:
authorStenzek <stenzek@gmail.com>2018-01-21 00:59:10 +1000
committerStenzek <stenzek@gmail.com>2018-02-22 19:08:52 +1000
commit3fd4142f361bd6af2c147faf48e1d1d62d170067 (patch)
tree824e1fe80fab472c0073232ac7580a4132ce3e9a /Source/Core/VideoBackends/OGL/PostProcessing.cpp
parentfca9c28f38e46b78bf65c3b427a21560e5fb42b7 (diff)
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.
Diffstat (limited to 'Source/Core/VideoBackends/OGL/PostProcessing.cpp')
-rw-r--r--Source/Core/VideoBackends/OGL/PostProcessing.cpp3
1 files changed, 1 insertions, 2 deletions
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();