ES does not support Vertex array - only use core painting

This commit is contained in:
Martin Gräßlin 2010-11-20 10:09:51 +01:00
parent b13f3f5f11
commit e5640dc655

View file

@ -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 )