diff options
author | Michael Schuldt <michael.schuldt@bmw-carit.de> | 2011-08-04 10:20:46 +0200 |
---|---|---|
committer | Michael Schuldt <michael.schuldt@bmw-carit.de> | 2011-08-04 10:20:46 +0200 |
commit | 5438c1f23cc7f433203ca06b4ec5ab142c338500 (patch) | |
tree | 6c47c701e34ce2ff6a51c6d6b64e194d4ce9e5e0 /LayerManagerPlugins | |
parent | d671d387e8a51a172e0a3bfbb4b718f5cb14e7ef (diff) | |
download | layer_management-5438c1f23cc7f433203ca06b4ec5ab142c338500.tar.gz |
Bugfix : Layer Should only be rendered if visible
Diffstat (limited to 'LayerManagerPlugins')
-rw-r--r-- | LayerManagerPlugins/Renderers/Graphic/src/GraphicSystems/GLESGraphicSystem.cpp | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/LayerManagerPlugins/Renderers/Graphic/src/GraphicSystems/GLESGraphicSystem.cpp b/LayerManagerPlugins/Renderers/Graphic/src/GraphicSystems/GLESGraphicSystem.cpp index 9217faf..14493d0 100644 --- a/LayerManagerPlugins/Renderers/Graphic/src/GraphicSystems/GLESGraphicSystem.cpp +++ b/LayerManagerPlugins/Renderers/Graphic/src/GraphicSystems/GLESGraphicSystem.cpp @@ -194,16 +194,19 @@ void GLESGraphicsystem::checkRenderLayer() void GLESGraphicsystem::renderLayer() { - SurfaceList surfaces = m_currentLayer->getAllSurfaces(); - for(std::list<Surface*>::const_iterator currentS = surfaces.begin(); currentS != surfaces.end(); currentS++) - { - if ((*currentS)->visibility && (*currentS)->opacity>0.0f) - { - Surface* currentSurface = (Surface*)*currentS; - m_baseWindowSystem->allocatePlatformSurface(currentSurface); - renderSurface(currentSurface); - } - } + if ( (m_currentLayer)->visibility && (m_currentLayer)->opacity > 0.0 ) + { + SurfaceList surfaces = m_currentLayer->getAllSurfaces(); + for(std::list<Surface*>::const_iterator currentS = surfaces.begin(); currentS != surfaces.end(); currentS++) + { + if ((*currentS)->visibility && (*currentS)->opacity>0.0f) + { + Surface* currentSurface = (Surface*)*currentS; + m_baseWindowSystem->allocatePlatformSurface(currentSurface); + renderSurface(currentSurface); + } + } + } } void GLESGraphicsystem::endLayer() |