Add support for a separate index buffer
authorLaszlo Agocs <laszlo.agocs@digia.com>
Sun, 5 Jan 2014 19:36:13 +0000 (20:36 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 15 Jan 2014 09:45:05 +0000 (10:45 +0100)
commit662046fe17c76d4fe505f0a04a66aa3477c14b32
tree23fdd35de8e6d6840159d933e0dd89b1e4fb3da9
parentc70b046648522c8a899fc1fa6e4d4a5924206313
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>
src/quick/scenegraph/coreapi/qsgbatchrenderer.cpp
src/quick/scenegraph/coreapi/qsgbatchrenderer_p.h
src/quick/scenegraph/scenegraph.pri