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:
parent
f240fc2196
commit
a2e214d326
2 changed files with 5 additions and 5 deletions
|
@ -1298,13 +1298,13 @@ void GLVertexBufferPrivate::corePainting( const QRegion& region, GLenum primitiv
|
||||||
|
|
||||||
// TODO: reenable paint clipper
|
// TODO: reenable paint clipper
|
||||||
// Clip using scissoring
|
// Clip using scissoring
|
||||||
/*PaintClipper pc( region );
|
PaintClipper pc( region );
|
||||||
for( PaintClipper::Iterator iterator;
|
for( PaintClipper::Iterator iterator;
|
||||||
!iterator.isDone();
|
!iterator.isDone();
|
||||||
iterator.next())
|
iterator.next())
|
||||||
{*/
|
{
|
||||||
glDrawArrays( primitiveMode, 0, numberVertices );
|
glDrawArrays( primitiveMode, 0, numberVertices );
|
||||||
//}
|
}
|
||||||
|
|
||||||
glBindBuffer( GL_ARRAY_BUFFER, 0 );
|
glBindBuffer( GL_ARRAY_BUFFER, 0 );
|
||||||
|
|
||||||
|
|
|
@ -229,8 +229,8 @@ void SceneOpenGL::paintGenericScreen( int mask, ScreenPaintData data )
|
||||||
void SceneOpenGL::paintBackground( QRegion region )
|
void SceneOpenGL::paintBackground( QRegion region )
|
||||||
{
|
{
|
||||||
// TODO: implement me
|
// TODO: implement me
|
||||||
glClearColor(0, 0, 0, 1);
|
//glClearColor(0, 0, 0, 1);
|
||||||
glClear(GL_COLOR_BUFFER_BIT);
|
//glClear(GL_COLOR_BUFFER_BIT);
|
||||||
}
|
}
|
||||||
|
|
||||||
//****************************************
|
//****************************************
|
||||||
|
|
Loading…
Reference in a new issue