diff options
Diffstat (limited to 'vcl/opengl/gdiimpl.cxx')
-rw-r--r-- | vcl/opengl/gdiimpl.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/vcl/opengl/gdiimpl.cxx b/vcl/opengl/gdiimpl.cxx index 9520c863f5d7..3690a6b5fa77 100644 --- a/vcl/opengl/gdiimpl.cxx +++ b/vcl/opengl/gdiimpl.cxx @@ -1373,6 +1373,8 @@ bool OpenGLSalGraphicsImpl::drawGradient(const tools::PolyPolygon& rPolyPoly, PreDraw(); +#define FIXME_BROKEN_STENCIL_FOR_GRADIENTS 0 +#if FIXME_BROKEN_STENCIL_FOR_GRADIENTS ImplSetClipBit( vcl::Region( rPolyPoly ), 0x02 ); if( mbUseStencil ) { @@ -1384,6 +1386,7 @@ bool OpenGLSalGraphicsImpl::drawGradient(const tools::PolyPolygon& rPolyPoly, glEnable( GL_STENCIL_TEST ); glStencilFunc( GL_EQUAL, 2, 0xFF ); } +#endif // if border >= 100%, draw solid rectangle with start color if( rGradient.GetBorder() >= 100.0 ) @@ -1408,8 +1411,10 @@ bool OpenGLSalGraphicsImpl::drawGradient(const tools::PolyPolygon& rPolyPoly, DrawRadialGradient( rGradient, aBoundRect ); } +#if FIXME_BROKEN_STENCIL_FOR_GRADIENTS if( !mbUseStencil ) glDisable( GL_STENCIL_TEST ); +#endif PostDraw(); CHECK_GL_ERROR(); |