summaryrefslogtreecommitdiff
path: root/canvas/source/opengl
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-08-18 08:07:04 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-09-02 01:08:48 +0200
commit7741e4c2e51d43b2bbced7cc25e39959cacd9cfe (patch)
tree972007b63bb6c4cf2645e5a9de9d9777e07b962d /canvas/source/opengl
parentb3d7fd2a42b61a699ecceaf5ae62906001a75eba (diff)
some temporary debug output
Diffstat (limited to 'canvas/source/opengl')
-rw-r--r--canvas/source/opengl/ogl_canvashelper.cxx5
-rw-r--r--canvas/source/opengl/ogl_spritedevicehelper.cxx1
2 files changed, 4 insertions, 2 deletions
diff --git a/canvas/source/opengl/ogl_canvashelper.cxx b/canvas/source/opengl/ogl_canvashelper.cxx
index a5ee6bc63c66..29c8ca6366bd 100644
--- a/canvas/source/opengl/ogl_canvashelper.cxx
+++ b/canvas/source/opengl/ogl_canvashelper.cxx
@@ -967,8 +967,9 @@ namespace oglcanvas
break;
}
- o_action.maARGBColor =
- mpDevice->getDeviceColorSpace()->convertToARGB(renderState.DeviceColor)[0];
+ if (renderState.DeviceColor.getLength())
+ o_action.maARGBColor =
+ mpDevice->getDeviceColorSpace()->convertToARGB(renderState.DeviceColor)[0];
}
void CanvasHelper::flush() const
diff --git a/canvas/source/opengl/ogl_spritedevicehelper.cxx b/canvas/source/opengl/ogl_spritedevicehelper.cxx
index 58a59ea1fe1c..2e4b592c1f80 100644
--- a/canvas/source/opengl/ogl_spritedevicehelper.cxx
+++ b/canvas/source/opengl/ogl_spritedevicehelper.cxx
@@ -389,6 +389,7 @@ namespace oglcanvas
uno::Reference<rendering::XColorSpace> SpriteDeviceHelper::getColorSpace() const
{
+ SAL_DEBUG("called SpriteDeviceHelper::getColorSpace()");
// always the same
return uno::Reference<rendering::XColorSpace>(
::canvas::tools::getStdColorSpace(),