diff options
-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) |