diff options
author | Mike Krus <mike.krus@kdab.com> | 2020-12-15 17:22:56 +0000 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2020-12-22 08:43:10 +0000 |
commit | d9847c969a999b8c614cc937a2239fbfc2567bca (patch) | |
tree | e8afa24686db128ca5794af1bb88468b2d728858 | |
parent | 866d91a0b6cf35dbb074b4a7233f0b6b9be24f79 (diff) |
Print warning about using primitive restart on ES2
Change-Id: I6007f1e152e38948b619cdeada84a86f7f4db4e4
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
(cherry picked from commit 492c976b05256b29aac0df861c4be77e1eb65906)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r-- | src/plugins/renderers/opengl/graphicshelpers/graphicshelperes2.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/renderers/opengl/graphicshelpers/graphicshelperes2.cpp b/src/plugins/renderers/opengl/graphicshelpers/graphicshelperes2.cpp index f485fc57b..8b9832a42 100644 --- a/src/plugins/renderers/opengl/graphicshelpers/graphicshelperes2.cpp +++ b/src/plugins/renderers/opengl/graphicshelpers/graphicshelperes2.cpp @@ -709,6 +709,11 @@ void GraphicsHelperES2::memoryBarrier(QMemoryBarrier::Operations barriers) void GraphicsHelperES2::enablePrimitiveRestart(int) { + static bool showWarning = true; + if (!showWarning) + return; + showWarning = false; + qWarning() << "primitive restart is not supported by OpenGL ES 2.0 (since GL 3.1, ES 3.0)"; } void GraphicsHelperES2::enableVertexAttributeArray(int location) |