Disable clipping when rendering infiniteRegion
parent
4c8c3060bf
commit
6252421a70
|
@ -1643,13 +1643,14 @@ void GLVertexBufferPrivate::legacyPainting( QRegion region, GLenum primitiveMode
|
||||||
}
|
}
|
||||||
|
|
||||||
// Clip using scissoring
|
// Clip using scissoring
|
||||||
PaintClipper pc( region );
|
if (region != infiniteRegion()) {
|
||||||
for( PaintClipper::Iterator iterator;
|
PaintClipper pc(region);
|
||||||
!iterator.isDone();
|
for (PaintClipper::Iterator iterator; !iterator.isDone(); iterator.next()) {
|
||||||
iterator.next())
|
glDrawArrays(primitiveMode, 0, numberVertices);
|
||||||
{
|
|
||||||
glDrawArrays( primitiveMode, 0, numberVertices );
|
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
glDrawArrays(primitiveMode, 0, numberVertices);
|
||||||
|
}
|
||||||
|
|
||||||
glDisableClientState( GL_VERTEX_ARRAY );
|
glDisableClientState( GL_VERTEX_ARRAY );
|
||||||
if (!legacyTexCoords.isEmpty()) {
|
if (!legacyTexCoords.isEmpty()) {
|
||||||
|
@ -1682,13 +1683,14 @@ void GLVertexBufferPrivate::corePainting( const QRegion& region, GLenum primitiv
|
||||||
}
|
}
|
||||||
|
|
||||||
// Clip using scissoring
|
// Clip using scissoring
|
||||||
PaintClipper pc( region );
|
if (region != infiniteRegion()) {
|
||||||
for( PaintClipper::Iterator iterator;
|
PaintClipper pc(region);
|
||||||
!iterator.isDone();
|
for (PaintClipper::Iterator iterator; !iterator.isDone(); iterator.next()) {
|
||||||
iterator.next())
|
glDrawArrays(primitiveMode, 0, numberVertices);
|
||||||
{
|
|
||||||
glDrawArrays( primitiveMode, 0, numberVertices );
|
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
glDrawArrays(primitiveMode, 0, numberVertices);
|
||||||
|
}
|
||||||
|
|
||||||
glBindBuffer( GL_ARRAY_BUFFER, 0 );
|
glBindBuffer( GL_ARRAY_BUFFER, 0 );
|
||||||
|
|
||||||
|
@ -1793,13 +1795,14 @@ void GLVertexBuffer::render( const QRegion& region, GLenum primitiveMode )
|
||||||
}
|
}
|
||||||
|
|
||||||
// Clip using scissoring
|
// Clip using scissoring
|
||||||
PaintClipper pc( region );
|
if (region != infiniteRegion()) {
|
||||||
for( PaintClipper::Iterator iterator;
|
PaintClipper pc(region);
|
||||||
!iterator.isDone();
|
for (PaintClipper::Iterator iterator; !iterator.isDone(); iterator.next()) {
|
||||||
iterator.next())
|
glDrawArrays(primitiveMode, 0, d->numberVertices);
|
||||||
{
|
|
||||||
glDrawArrays( primitiveMode, 0, d->numberVertices );
|
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
glDrawArrays(primitiveMode, 0, d->numberVertices);
|
||||||
|
}
|
||||||
|
|
||||||
glBindBuffer( GL_ARRAY_BUFFER, 0 );
|
glBindBuffer( GL_ARRAY_BUFFER, 0 );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue