summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/OGL/PostProcessing.cpp
diff options
context:
space:
mode:
authorStenzek <stenzek@gmail.com>2017-09-09 12:44:25 +1000
committerStenzek <stenzek@gmail.com>2017-11-23 16:09:59 +1000
commitab44536a3c5e03851a94848c8c08779d11eedf3d (patch)
treede8c04b218cf1552601e1d2d0d32954339b71d6a /Source/Core/VideoBackends/OGL/PostProcessing.cpp
parent73a67aa413d9bd5e30f361089915135b2fb41e7a (diff)
OGL: Update the window size after swapping buffers, not before
Prevents us from rendering beyond the viewport bounds.
Diffstat (limited to 'Source/Core/VideoBackends/OGL/PostProcessing.cpp')
-rw-r--r--Source/Core/VideoBackends/OGL/PostProcessing.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Core/VideoBackends/OGL/PostProcessing.cpp b/Source/Core/VideoBackends/OGL/PostProcessing.cpp
index bf34e2a54c..74a4c2da0e 100644
--- a/Source/Core/VideoBackends/OGL/PostProcessing.cpp
+++ b/Source/Core/VideoBackends/OGL/PostProcessing.cpp
@@ -12,6 +12,7 @@
#include "Core/Config/GraphicsSettings.h"
#include "VideoBackends/OGL/FramebufferManager.h"
+#include "VideoBackends/OGL/OGLTexture.h"
#include "VideoBackends/OGL/ProgramShaderCache.h"
#include "VideoBackends/OGL/SamplerCache.h"
@@ -121,6 +122,7 @@ void OpenGLPostProcessing::BlitFromTexture(TargetRectangle src, TargetRectangle
glBindTexture(GL_TEXTURE_2D_ARRAY, src_texture);
g_sampler_cache->BindLinearSampler(9);
glDrawArrays(GL_TRIANGLE_STRIP, 0, 4);
+ OGLTexture::SetStage();
}
void OpenGLPostProcessing::ApplyShader()