Introducing check to enable rendering dependent on the content state.
[profile/ivi/layer-management.git] / LayerManagerPlugins / Renderers / Graphic / src / TextureBinders / X11EglImage.cpp
index de66298..7e08adc 100644 (file)
@@ -45,7 +45,7 @@ X11EglImage::X11EglImage(EGLDisplay eglDisplay, Display* x11display)
 bool X11EglImage::bindSurfaceTexture(Surface* surface)
 {
     EglXPlatformSurface* nativeSurface = (EglXPlatformSurface*)surface->platform;
-    if (nativeSurface)
+    if (nativeSurface && nativeSurface->isReadyForRendering())
     {
         glBindTexture(GL_TEXTURE_2D, nativeSurface->texture);
         if (nativeSurface->eglImage)