aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/scenegraph/coreapi/qsgbatchrenderer_p.h
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar.sletta@digia.com>2013-10-07 10:17:56 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-10-08 08:47:47 +0200
commit48e32cfabed8527ac788142393226ad931d29420 (patch)
tree56dea39df23e23c26f632216ec0c9e72ab415356 /src/quick/scenegraph/coreapi/qsgbatchrenderer_p.h
parentaeb8416d948b69d55dda45ed4ebe85585325fedc (diff)
All matrices in a batch need to be 2D safe when merging.
If we merge geometry nodes that make actual use of the z-coordinate, this information becomes lost when merging and the result is that we end up with an arbitrary wrongfully applied transformation to the merged element. Task-number: QTBUG-33897 Change-Id: I6129243e9bb890949023c35dc6b7bce30d31709a Reviewed-by: Andrew Knight <andrew.knight@digia.com> Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
Diffstat (limited to 'src/quick/scenegraph/coreapi/qsgbatchrenderer_p.h')
-rw-r--r--src/quick/scenegraph/coreapi/qsgbatchrenderer_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quick/scenegraph/coreapi/qsgbatchrenderer_p.h b/src/quick/scenegraph/coreapi/qsgbatchrenderer_p.h
index 6e9bd750e2..94e8ba5d96 100644
--- a/src/quick/scenegraph/coreapi/qsgbatchrenderer_p.h
+++ b/src/quick/scenegraph/coreapi/qsgbatchrenderer_p.h
@@ -57,7 +57,6 @@ struct Vec;
struct Rect;
struct Buffer;
struct Chunk;
-struct AlphaChunk;
struct Batch;
struct Node;
class Updater;
@@ -243,6 +242,7 @@ struct Batch
void cleanupRemovedElements();
bool isTranslateOnlyToRoot() const;
+ bool allMatricesAre2DSafe() const;
// pseudo-constructor...
void init() {