Kaydet (Commit) 7c0dc577 authored tarafından Zolnai Tamás's avatar Zolnai Tamás

glTF rendering: fix texture problems

It seems we need mirroring.

Change-Id: Id9ad7041eb09ec773e4174cb68d34a65a2c473fe
üst 9c830b09
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment