From e5640dc65545b265298dc512831680fffa02d038 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Sat, 20 Nov 2010 10:09:51 +0100 Subject: [PATCH] ES does not support Vertex array - only use core painting --- lib/kwinglutils.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/kwinglutils.cpp b/lib/kwinglutils.cpp index ee21ef43c0..10a072d30e 100644 --- a/lib/kwinglutils.cpp +++ b/lib/kwinglutils.cpp @@ -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 )