From ea070d884110ff7415a43224ac73dd6e0edefb45 Mon Sep 17 00:00:00 2001 From: Timo Lotterbach Date: Wed, 18 Jan 2012 15:39:18 +0200 Subject: [PATCH] PlatformSurfaces : modified isReadyForRendering() to always return true In some situations, only one damage event is sent during the startup of an application, but the Platform surface os not yet available. In this case isReadyForRendering will always return false and the content of the surface is not rendered. --- .../Renderers/Graphic/include/PlatformSurfaces/XPlatformSurface.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/LayerManagerPlugins/Renderers/Graphic/include/PlatformSurfaces/XPlatformSurface.h b/LayerManagerPlugins/Renderers/Graphic/include/PlatformSurfaces/XPlatformSurface.h index d15a29d..efcd838 100644 --- a/LayerManagerPlugins/Renderers/Graphic/include/PlatformSurfaces/XPlatformSurface.h +++ b/LayerManagerPlugins/Renderers/Graphic/include/PlatformSurfaces/XPlatformSurface.h @@ -52,7 +52,8 @@ public: bool isReadyForRendering() { - return m_isReadyForRendering; + return true; + /*return m_isReadyForRendering;*/ } // TODO: private/protected bool isMapped; -- 2.7.4