From 7dcfaffb2b2b41122b44f63ccf93d51bf6442632 Mon Sep 17 00:00:00 2001 From: Michael Schuldt Date: Wed, 3 Jul 2013 16:10:50 +0200 Subject: GLESGraphicSystem: Forcing calculation of TargetDestination - calculate the target destination in each composition cyle to be safe that textur coordinates are fitting well. Signed-off-by: Michael Schuldt --- .../Renderers/Graphic/src/GraphicSystems/GLESGraphicSystem.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/LayerManagerPlugins/Renderers/Graphic/src/GraphicSystems/GLESGraphicSystem.cpp b/LayerManagerPlugins/Renderers/Graphic/src/GraphicSystems/GLESGraphicSystem.cpp index 936ee67..97ac0da 100644 --- a/LayerManagerPlugins/Renderers/Graphic/src/GraphicSystems/GLESGraphicSystem.cpp +++ b/LayerManagerPlugins/Renderers/Graphic/src/GraphicSystems/GLESGraphicSystem.cpp @@ -796,9 +796,11 @@ void GLESGraphicsystem::renderSurface(Surface* surface) shader = layerShader; } - FloatRectangle targetSurfaceSource = surface->getTargetSourceRegion(); - FloatRectangle targetSurfaceDestination = surface->getTargetDestinationRegion(); + // calculate the target destination in each composition, safe step but increase cpu cycless + surface->calculateTargetDestination(m_currentLayer->getSourceRegion(),m_currentLayer->getDestinationRegion()); + FloatRectangle targetSurfaceSource = surface->getTargetSourceRegion(); + FloatRectangle targetSurfaceDestination = surface->getTargetDestinationRegion(); float textureCoordinates[4]; ViewportTransform::transformRectangleToTextureCoordinates(targetSurfaceSource, surface->OriginalSourceWidth, -- cgit v1.2.1