aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/scenegraph/scenegraph.pri
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@digia.com>2014-01-05 20:36:13 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-01-15 10:45:05 +0100
commit662046fe17c76d4fe505f0a04a66aa3477c14b32 (patch)
tree23fdd35de8e6d6840159d933e0dd89b1e4fb3da9 /src/quick/scenegraph/scenegraph.pri
parentc70b046648522c8a899fc1fa6e4d4a5924206313 (diff)
Add support for a separate index buffer
The renderer binds same buffer both for vertex and index data. This is allowed on desktop & ES but is forbidden in WebGL. Add a compile-time flag to disable this optimization(?) and force using a separate buffer for the index data. Change-Id: I57c17c883a55e02513a8e4427efb202cafaaf37e Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>
Diffstat (limited to 'src/quick/scenegraph/scenegraph.pri')
-rw-r--r--src/quick/scenegraph/scenegraph.pri2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/quick/scenegraph/scenegraph.pri b/src/quick/scenegraph/scenegraph.pri
index 6f64c881a8..6868e10b90 100644
--- a/src/quick/scenegraph/scenegraph.pri
+++ b/src/quick/scenegraph/scenegraph.pri
@@ -1,5 +1,7 @@
!contains(QT_CONFIG, egl):DEFINES += QT_NO_EGL
+# DEFINES += QSG_SEPARATE_INDEX_BUFFER
+
# Core API
HEADERS += \
$$PWD/coreapi/qsgbatchrenderer_p.h \