Enable PaintClipper on core VBO again.

Need to disable clearing screen on EGL for that.
With Mesa swapping buffer is sufficient, though a better solution will be required for other drivers
This commit is contained in:
Martin Gräßlin 2010-12-04 12:28:12 +01:00 committed by Martin Gräßlin
parent f240fc2196
commit a2e214d326
2 changed files with 5 additions and 5 deletions

View file

@ -1298,13 +1298,13 @@ void GLVertexBufferPrivate::corePainting( const QRegion& region, GLenum primitiv
// TODO: reenable paint clipper
// Clip using scissoring
/*PaintClipper pc( region );
PaintClipper pc( region );
for( PaintClipper::Iterator iterator;
!iterator.isDone();
iterator.next())
{*/
{
glDrawArrays( primitiveMode, 0, numberVertices );
//}
}
glBindBuffer( GL_ARRAY_BUFFER, 0 );

View file

@ -229,8 +229,8 @@ void SceneOpenGL::paintGenericScreen( int mask, ScreenPaintData data )
void SceneOpenGL::paintBackground( QRegion region )
{
// TODO: implement me
glClearColor(0, 0, 0, 1);
glClear(GL_COLOR_BUFFER_BIT);
//glClearColor(0, 0, 0, 1);
//glClear(GL_COLOR_BUFFER_BIT);
}
//****************************************