diff options
author | Zolnai Tamás <tamas.zolnai@collabora.com> | 2014-08-11 10:18:04 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-08-29 17:40:28 +0200 |
commit | cde22222cff549c63045eec968c80c9db0c523f2 (patch) | |
tree | 06249bb0e01b2ed36919cec94df0480ae197e3af /avmedia | |
parent | f71aae75017308545d0f835de6a5e39603d17002 (diff) |
Mirror vertically the texture bitmaps for OpenGL
In case of glTF models it saves a Mirror() call.
In case of OpenGL charts it avoid flipped texts.
Change-Id: I1ac980e16bcb5ba6a9a025b638aaac3b08b4aab3
Diffstat (limited to 'avmedia')
-rw-r--r-- | avmedia/source/opengl/oglplayer.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/avmedia/source/opengl/oglplayer.cxx b/avmedia/source/opengl/oglplayer.cxx index 917ab2d12c6a..a21d5db403d1 100644 --- a/avmedia/source/opengl/oglplayer.cxx +++ b/avmedia/source/opengl/oglplayer.cxx @@ -102,9 +102,8 @@ bool OGLPlayer::create( const OUString& rURL ) return false; } BitmapEx aBitmapEx = aGraphic.GetBitmapEx(); - aBitmapEx.Mirror(BMP_MIRROR_VERT); rFile.buffer = new char[4 * aBitmapEx.GetSizePixel().Width() * aBitmapEx.GetSizePixel().Height()]; - OpenGLHelper::ConvertBitmapExToRGBABuffer(aBitmapEx, reinterpret_cast<sal_uInt8*>(rFile.buffer)); + OpenGLHelper::ConvertBitmapExToRGBATextureBuffer(aBitmapEx, reinterpret_cast<sal_uInt8*>(rFile.buffer)); rFile.imagewidth = aBitmapEx.GetSizePixel().Width(); rFile.imageheight = aBitmapEx.GetSizePixel().Height(); } |