summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vcl/source/gdi/impimage.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/vcl/source/gdi/impimage.cxx b/vcl/source/gdi/impimage.cxx
index 8ea787e605fd..4acbc6236476 100644
--- a/vcl/source/gdi/impimage.cxx
+++ b/vcl/source/gdi/impimage.cxx
@@ -29,6 +29,10 @@
#include <image.h>
#include <boost/scoped_array.hpp>
+#if defined WNT
+#include <vcl/opengl/OpenGLHelper.hxx>
+#endif
+
#define IMPSYSIMAGEITEM_MASK ( 0x01 )
#define IMPSYSIMAGEITEM_ALPHA ( 0x02 )
@@ -336,7 +340,7 @@ pOutDev
if( !mpDisplayBmp && !maBmpEx.IsEmpty() )
{
#if defined WNT
- if( !maBmpEx.IsAlpha() )
+ if( !maBmpEx.IsAlpha() && !OpenGLHelper::isVCLOpenGLEnabled())
{
// FIXME: this looks like rather an obsolete code-path to me.
const Bitmap aBmp( maBmpEx.GetBitmap().CreateDisplayBitmap( pOutDev ) );