From 7c0dc577a4bae2cd398894a68e2edfe966c9ae26 Mon Sep 17 00:00:00 2001 From: Zolnai Tamás Date: Tue, 27 May 2014 20:12:59 +0200 Subject: glTF rendering: fix texture problems It seems we need mirroring. Change-Id: Id9ad7041eb09ec773e4174cb68d34a65a2c473fe --- avmedia/source/opengl/oglplayer.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'avmedia') 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(); -- cgit