Bug, we didn't support multiple attaches
authorJørgen Lind <jorgen.lind@nokia.com>
Thu, 12 May 2011 13:27:14 +0000 (15:27 +0200)
committerJørgen Lind <jorgen.lind@nokia.com>
Thu, 12 May 2011 13:27:49 +0000 (15:27 +0200)
src/qt-compositor/wayland_wrapper/wlsurface.cpp

index 66bf3ab..a72c826 100644 (file)
@@ -252,8 +252,7 @@ QImage Surface::image() const
 GLuint Surface::textureId() const
 {
     Q_D(const Surface);
-    if (!d->texture_id
-            && d->type() == WaylandSurface::Texture
+    if ( d->type() == WaylandSurface::Texture
             && !d->textureCreatedForBuffer) {
         glDeleteTextures(1,&d->texture_id);
         Surface *that = const_cast<Surface *>(this);