glTF rendering: fix texture problems
It seems we need mirroring. Change-Id: Id9ad7041eb09ec773e4174cb68d34a65a2c473fe
This commit is contained in:
parent
9c830b09a0
commit
7c0dc577a4
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user