From 3c02917e206ae380a08da220e21862822b8cfafa Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Sat, 16 Oct 2010 20:11:43 +0000 Subject: [PATCH] Fix flipped video when switching between avs and ffms2 providers Originally committed to SVN as r4814. --- aegisub/src/video_out_gl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aegisub/src/video_out_gl.cpp b/aegisub/src/video_out_gl.cpp index e078b57ab..ccb3ae008 100644 --- a/aegisub/src/video_out_gl.cpp +++ b/aegisub/src/video_out_gl.cpp @@ -128,12 +128,12 @@ void VideoOutGL::DetectOpenGLCapabilities() { void VideoOutGL::InitTextures(int width, int height, GLenum format, int bpp, bool flipped) { using namespace std; - frameFlipped = flipped; // Do nothing if the frame size and format are unchanged - if (width == frameWidth && height == frameHeight && format == frameFormat) return; + if (width == frameWidth && height == frameHeight && format == frameFormat && flipped == frameFlipped) return; frameWidth = width; frameHeight = height; frameFormat = format; + frameFlipped = flipped; LOG_I("video/out/gl") << "Video size: " << width << "x" << height; DetectOpenGLCapabilities();