WaylandGLESTexture: Bugfix. Memory leak occurs if destoryImageKHR is not called.
authorNobuhiko Tanibata <ntanibata@jp.adit-jv.com>
Thu, 15 Nov 2012 10:32:49 +0000 (19:32 +0900)
committerTimo Lotterbach <timo.lotterbach@bmw-carit.de>
Thu, 22 Nov 2012 10:01:28 +0000 (02:01 -0800)
On x86 crossville OKI, destoryImageKHR is not supported. But this part
should be kept as standard way. So that removing board spefic
implementation.

Signed-off-by: Nobuhiko Tanibata <ntanibata@jp.adit-jv.com>
LayerManagerPlugins/Renderers/Graphic/src/TextureBinders/WaylandGLESTexture.cpp

index 7ce7efc..11ad447 100644 (file)
@@ -132,15 +132,8 @@ void WaylandGLESTexture::createClientBuffer(Surface* surface)
             LOG_DEBUG("WaylandGLESTexture", "creating EGL Image from client buffer");
             if (nativeSurface->eglImage)
             {
-#ifdef WITH_WAYLAND_DRM
-                if (nativeSurface->texture){
-                    glBindTexture(GL_TEXTURE_2D, 0);
-                    glDeleteTextures(1,&nativeSurface->texture);
-                }
-#else
                 m_pfEglDestroyImageKHR(m_eglDisplay, nativeSurface->eglImage);
                 glDeleteTextures(1,&nativeSurface->texture);
-#endif // WITH_WAYLAND_DRM
                 nativeSurface->eglImage = 0;
                 nativeSurface->texture = 0;
             }