summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-01-20 00:55:10 +0000
committerCarl Hetherington <cth@carlh.net>2019-05-06 21:31:09 +0100
commitf01dbe03f472188a002d611ee873f7de121d25b6 (patch)
tree091289f8dfcc3934d9dc5ad867987b43be5e187d
parentbb6879ecc8727db3d7ce391b4166805f77db4d11 (diff)
Fix rendering with odd output sizes.
-rw-r--r--src/wx/film_viewer.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wx/film_viewer.cc b/src/wx/film_viewer.cc
index acbbcdd25..173c286cc 100644
--- a/src/wx/film_viewer.cc
+++ b/src/wx/film_viewer.cc
@@ -469,6 +469,10 @@ FilmViewer::calculate_sizes ()
_out_size.width = max (64, _out_size.width);
_out_size.height = max (64, _out_size.height);
+ /* OpenGL can't cope with odd sizes */
+ _out_size.width &= ~1;
+ _out_size.height &= ~1;
+
_player->set_video_container_size (_out_size);
}