diff options
author | Louis-Francis Ratté-Boulianne <lfrb@collabora.com> | 2014-11-08 20:13:28 -0500 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-11-10 07:59:43 +0100 |
commit | c245039e7bfda0ebd1355f3c08b5849472002d6f (patch) | |
tree | b3597e2568eb370efa536607f3d3f046641b8bd7 /vcl/opengl/salbmp.cxx | |
parent | 03c6479fd3227129e4f496a4ac2a5fdf7bed44c1 (diff) |
vcl: Fix getBitmap operation
Change-Id: Id78065081bbde97738afd0f4da09b502afe468f4
Diffstat (limited to 'vcl/opengl/salbmp.cxx')
-rw-r--r-- | vcl/opengl/salbmp.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/vcl/opengl/salbmp.cxx b/vcl/opengl/salbmp.cxx index 07367731c601..40be72807d94 100644 --- a/vcl/opengl/salbmp.cxx +++ b/vcl/opengl/salbmp.cxx @@ -71,6 +71,7 @@ bool OpenGLSalBitmap::Create( OpenGLContext& rContext, long nX, long nY, long nW maPalette = aEmptyPalette; mpTexture.reset( new OpenGLTexture( nX, nY, nWidth, nHeight ) ); + mbDirtyTexture = false; return true; } @@ -107,6 +108,7 @@ bool OpenGLSalBitmap::Create( const SalBitmap& rSalBmp, sal_uInt16 nNewBitCount if( isValidBitCount( nNewBitCount ) ) { + // TODO: lfrb: What about the pending operations?! mnBits = nNewBitCount; mnBytesPerRow = rSourceBitmap.mnBytesPerRow; mnWidth = rSourceBitmap.mnWidth; @@ -116,6 +118,7 @@ bool OpenGLSalBitmap::Create( const SalBitmap& rSalBmp, sal_uInt16 nNewBitCount maPalette = rSourceBitmap.maPalette; mpContext = rSourceBitmap.mpContext; mpTexture = rSourceBitmap.mpTexture; + mbDirtyTexture = false; maUserBuffer = rSourceBitmap.maUserBuffer; // TODO Copy buffer data if the bitcount and palette are the same |