forked from mia/Aegisub
Fix flipped video when switching between avs and ffms2 providers
Originally committed to SVN as r4814.
This commit is contained in:
parent
f7f7699aed
commit
3c02917e20
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue