glTF rendering: fix texture problems

It seems we need mirroring.

Change-Id: Id9ad7041eb09ec773e4174cb68d34a65a2c473fe
This commit is contained in:
Zolnai Tamás 2014-05-27 20:12:59 +02:00
parent 9c830b09a0
commit 7c0dc577a4

View File

@ -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();