[Libreoffice-commits] core.git: Branch 'feature/chart-3d-chart2' - avmedia/source

Zolnai Tamás tamas.zolnai at collabora.com
Tue May 27 11:14:48 PDT 2014


 avmedia/source/opengl/oglplayer.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit d55b93da476499a991463a9416a97addea549669
Author: Zolnai Tamás <tamas.zolnai at collabora.com>
Date:   Tue May 27 20:12:59 2014 +0200

    glTF rendering: fix texture problems
    
    It seems we need mirroring.
    
    Change-Id: Id9ad7041eb09ec773e4174cb68d34a65a2c473fe

diff --git a/avmedia/source/opengl/oglplayer.cxx b/avmedia/source/opengl/oglplayer.cxx
index 2536b68..af3707f 100644
--- a/avmedia/source/opengl/oglplayer.cxx
+++ b/avmedia/source/opengl/oglplayer.cxx
@@ -87,7 +87,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();


More information about the Libreoffice-commits mailing list