skip gl*List calls in shaderless path

BUG: 222872

svn path=/trunk/KDE/kdebase/workspace/; revision=1124311
icc-effect-5.14.5
Thomas Lübking 2010-05-08 19:56:07 +00:00
parent 62d583c47b
commit 7913a98465
1 changed files with 2 additions and 4 deletions

View File

@ -144,8 +144,7 @@ void SnowEffect::snowing( QRegion& region )
mShader->setUniform( "top", rect.y() );
mShader->setUniform( "bottom", rect.y() + rect.height() );
}
else
glNewList( list, GL_COMPILE_AND_EXECUTE );
for (int i=0; i<flakes.count(); i++)
{
SnowFlake& flake = flakes[i];
@ -202,8 +201,7 @@ void SnowEffect::snowing( QRegion& region )
{
mShader->unbind();
}
else
glEndList();
glDisable( GL_BLEND );
texture->unbind();
glPopAttrib();