diff -ur compiz/src/paint.c compiz.new/src/paint.c
--- compiz/src/paint.c	2006-03-01 17:35:49.000000000 +0100
+++ compiz.new/src/paint.c	2006-03-03 16:08:09.000000000 +0100
@@ -105,7 +105,7 @@
 	    glDisable (GL_STENCIL_TEST);
 
 	    glPopMatrix ();
-
+	    glFlush();
 	    return;
 	}
     } 
@@ -158,6 +158,9 @@
 	return TRUE;
     }
     else
+
+	glFlush();
+
 	return FALSE;
 
     screenLighting (screen, FALSE);
