diff options
author | Zolnai Tamás <tamas.zolnai@collabora.com> | 2014-05-27 20:12:59 +0200 |
---|---|---|
committer | Zolnai Tamás <tamas.zolnai@collabora.com> | 2014-05-27 22:17:17 +0200 |
commit | 7c0dc577a4bae2cd398894a68e2edfe966c9ae26 (patch) | |
tree | 183498f720e869dc69e8a0610b272f3c6023b9c1 /avmedia | |
parent | 9c830b09a033a4716bbc54bfe59f46e22cafe677 (diff) |
glTF rendering: fix texture problems
It seems we need mirroring.
Change-Id: Id9ad7041eb09ec773e4174cb68d34a65a2c473fe
Diffstat (limited to 'avmedia')
-rw-r--r-- | avmedia/source/opengl/oglplayer.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/avmedia/source/opengl/oglplayer.cxx b/avmedia/source/opengl/oglplayer.cxx index 86da386d4867..79c78f18ecc9 100644 --- a/avmedia/source/opengl/oglplayer.cxx +++ b/avmedia/source/opengl/oglplayer.cxx @@ -88,7 +88,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(); |