summaryrefslogtreecommitdiff
path: root/avmedia
diff options
context:
space:
mode:
authorZolnai Tamás <tamas.zolnai@collabora.com>2014-05-27 20:12:59 +0200
committerZolnai Tamás <tamas.zolnai@collabora.com>2014-06-11 19:27:30 +0200
commit4962ea97f1446fa5c9021130c9c938d1a9f7e03f (patch)
tree038e91f137e49423605ec679f76ce942a8b291f1 /avmedia
parent093c80e1a67d2d387729ddaa9e72bea162e52993 (diff)
glTF rendering: fix texture problems
It seems we need mirroring. Change-Id: Id9ad7041eb09ec773e4174cb68d34a65a2c473fe (cherry picked from commit 7c0dc577a4bae2cd398894a68e2edfe966c9ae26)
Diffstat (limited to 'avmedia')
-rw-r--r--avmedia/source/opengl/oglplayer.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/avmedia/source/opengl/oglplayer.cxx b/avmedia/source/opengl/oglplayer.cxx
index 79d8d184d5f9..8ed8ddb45d86 100644
--- a/avmedia/source/opengl/oglplayer.cxx
+++ b/avmedia/source/opengl/oglplayer.cxx
@@ -90,7 +90,8 @@ bool OGLPlayer::create( const OUString& rURL )
GraphicFilter aFilter;
Graphic aGraphic;
aFilter.ImportGraphic(aGraphic, INetURLObject(sFilesURL));
- const BitmapEx aBitmapEx = aGraphic.GetBitmapEx();
+ BitmapEx aBitmapEx = aGraphic.GetBitmapEx();
+ aBitmapEx.Mirror(BMP_MIRROR_VERT);
rFile.buffer = (char*)OpenGLHelper::ConvertBitmapExToRGBABuffer(aBitmapEx);
rFile.imagewidth = aBitmapEx.GetSizePixel().Width();
rFile.imageheight = aBitmapEx.GetSizePixel().Height();