summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Schuldt <michael.schuldt@bmw.de>2013-07-03 16:10:50 +0200
committerTimo Lotterbach <timo.lotterbach@bmw-carit.de>2013-07-05 12:56:48 +0200
commit7dcfaffb2b2b41122b44f63ccf93d51bf6442632 (patch)
tree751b852e05a360b82dce38d8c2bd5bf41db54bce
parente460fd26532781f4474e4cf2cc7661e546a2c764 (diff)
downloadlayer_management-7dcfaffb2b2b41122b44f63ccf93d51bf6442632.tar.gz
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 <michael.schuldt@bmw.de>
-rw-r--r--LayerManagerPlugins/Renderers/Graphic/src/GraphicSystems/GLESGraphicSystem.cpp6
1 files 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,