diff options
author | Lorn Potter <lorn.potter@gmail.com> | 2018-06-06 13:49:37 +1000 |
---|---|---|
committer | Lorn Potter <lorn.potter@gmail.com> | 2018-06-06 07:01:29 +0000 |
commit | 6c75a6589f45d60c27ca52ba951266632e0c1cae (patch) | |
tree | 958a99da10a7a715544063961342d3d8069ee65a /src/quick/scenegraph/qsgdefaultrendercontext.cpp | |
parent | 3ca5f33c8b9c273f0169ec4c11417328f8071e97 (diff) |
wasm: fix using separate index buffer
html5 platform is webgl, so we share needing separate index buffers
Change-Id: Ic0d09d1ee9274f6a487923bb43d42f06ff6806c5
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Diffstat (limited to 'src/quick/scenegraph/qsgdefaultrendercontext.cpp')
-rw-r--r-- | src/quick/scenegraph/qsgdefaultrendercontext.cpp | 3 |
1 files changed, 2 insertions, 1 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; } |