Introducing check to enable rendering dependent on the content state.
[profile/ivi/layer-management.git] / LayerManagerPlugins / Renderers / Graphic / src / TextureBinders / X11CopyGLX.cpp
index e671291..9272996 100644 (file)
@@ -34,7 +34,7 @@ bool X11CopyGLX::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)