ES does not support Vertex array - only use core painting
This commit is contained in:
parent
b13f3f5f11
commit
e5640dc655
1 changed files with 2 additions and 0 deletions
|
@ -1320,6 +1320,7 @@ void GLVertexBuffer::render( const QRegion& region, GLenum primitiveMode )
|
|||
d->corePainting( region, primitiveMode );
|
||||
return;
|
||||
}
|
||||
#ifndef KWIN_HAVE_OPENGLES
|
||||
glEnableClientState( GL_VERTEX_ARRAY );
|
||||
glEnableClientState( GL_TEXTURE_COORD_ARRAY );
|
||||
glBindBuffer( GL_ARRAY_BUFFER, d->buffers[ 0 ] );
|
||||
|
@ -1341,6 +1342,7 @@ void GLVertexBuffer::render( const QRegion& region, GLenum primitiveMode )
|
|||
|
||||
glDisableClientState( GL_VERTEX_ARRAY );
|
||||
glDisableClientState( GL_TEXTURE_COORD_ARRAY );
|
||||
#endif
|
||||
}
|
||||
|
||||
void GLVertexBuffer::setUseShader( bool use )
|
||||
|
|
Loading…
Reference in a new issue