From 90eb1ed1a045307eaf9fa729aeaa077a8a100bcf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Sat, 20 Nov 2010 09:43:11 +0100 Subject: [PATCH] No GL_TEXTURE_RECTANGLE_ARB in ES --- lib/kwinglutils.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/kwinglutils.cpp b/lib/kwinglutils.cpp index b0c8968182..ed6fd5af97 100644 --- a/lib/kwinglutils.cpp +++ b/lib/kwinglutils.cpp @@ -376,6 +376,7 @@ bool GLTexture::load( const QImage& image, GLenum target ) return false; QImage img = image; mTarget = target; +#ifndef KWIN_HAVE_OPENGLES if( mTarget != GL_TEXTURE_RECTANGLE_ARB ) { if( !NPOTTextureSupported() @@ -390,10 +391,13 @@ bool GLTexture::load( const QImage& image, GLenum target ) } else { +#endif mScale.setWidth( 1.0 ); mScale.setHeight( 1.0 ); can_use_mipmaps = false; +#ifndef KWIN_HAVE_OPENGLES } +#endif setFilter( GL_LINEAR ); mSize = img.size(); y_inverted = false;