From 7913a984652491c66ce4b3bbb50d5e0ed229641d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=BCbking?= Date: Sat, 8 May 2010 19:56:07 +0000 Subject: [PATCH] skip gl*List calls in shaderless path BUG: 222872 svn path=/trunk/KDE/kdebase/workspace/; revision=1124311 --- effects/snow/snow.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/effects/snow/snow.cpp b/effects/snow/snow.cpp index a1a536b519..76f468e3e9 100644 --- a/effects/snow/snow.cpp +++ b/effects/snow/snow.cpp @@ -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; iunbind(); } - else - glEndList(); + glDisable( GL_BLEND ); texture->unbind(); glPopAttrib();