do not draw with SALCOLOR_NONE

Change-Id: I882a42f58ac298d333985068b2fe6ef9ac198c8b
This commit is contained in:
Luboš Luňák
2015-01-19 22:36:40 +01:00
parent 168315e3b7
commit bd976c2764

View File

@@ -406,6 +406,8 @@ bool OpenGLSalGraphicsImpl::UseSolid( SalColor nColor )
// Like UseSolid(), but sets up for AA drawing, which uses gradients to create the AA.
bool OpenGLSalGraphicsImpl::UseSolidAA( SalColor nColor, double fTransparency )
{
if( nColor == SALCOLOR_NONE )
return false;
if( !mrParent.getAntiAliasB2DDraw())
return UseSolid( nColor );
if( !UseProgram( "textureVertexShader", "linearGradientFragmentShader" ) )