Introducing check to enable rendering dependent on the content state.
[profile/ivi/layer-management.git] / LayerManagerPlugins / Renderers / Graphic / src / TextureBinders / X11CopyGLES.cpp
index 28db1d5..3457670 100644 (file)
@@ -37,7 +37,7 @@ bool X11CopyGLES::bindSurfaceTexture(Surface* surface)
     {
         nativeSurface = (XPlatformSurface*)surface->platform;
     } 
-    if( nativeSurface != NULL && surface->getNativeContent() != 0 )
+    if( nativeSurface != NULL && surface->getNativeContent() != 0 && nativeSurface->isReadyForRendering())
     {
            pixmap = XCompositeNameWindowPixmap (dpy, surface->getNativeContent());
            if (!pixmap)