diff options
-rw-r--r-- | src/quick/scenegraph/qsgdefaultrendercontext.cpp | 3 | ||||
-rw-r--r-- | src/quick/scenegraph/scenegraph.pri | 1 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/quick/scenegraph/qsgdefaultrendercontext.cpp b/src/quick/scenegraph/qsgdefaultrendercontext.cpp index 22e97a2dc9..a6459dbd78 100644 --- a/src/quick/scenegraph/qsgdefaultrendercontext.cpp +++ b/src/quick/scenegraph/qsgdefaultrendercontext.cpp @@ -325,7 +325,8 @@ bool QSGDefaultRenderContext::separateIndexBuffer() const // lifetime. An attempt to bind a buffer object to the other // target will generate an INVALID_OPERATION error, and the // current binding will remain untouched. - static const bool isWebGL = qGuiApp->platformName().compare(QLatin1String("webgl")) == 0; + static const bool isWebGL = (qGuiApp->platformName().compare(QLatin1String("webgl")) == 0 + || qGuiApp->platformName().compare(QLatin1String("html5")) == 0); return isWebGL; } diff --git a/src/quick/scenegraph/scenegraph.pri b/src/quick/scenegraph/scenegraph.pri index a9a71b1324..4f98638487 100644 --- a/src/quick/scenegraph/scenegraph.pri +++ b/src/quick/scenegraph/scenegraph.pri @@ -1,5 +1,4 @@ # DEFINES += QSG_DISTANCEFIELD_CACHE_DEBUG -emscripten: DEFINES += QSG_SEPARATE_INDEX_BUFFER # Core API HEADERS += \ |