skip gl*List calls in shaderless path
BUG: 222872 svn path=/trunk/KDE/kdebase/workspace/; revision=1124311
This commit is contained in:
parent
62d583c47b
commit
7913a98465
1 changed files with 2 additions and 4 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue