From c33faac32bcf333c990469d455f967599494347a Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Tue, 18 Sep 2018 13:38:14 +0200 Subject: More fixups for GL_CONTEXT_LOST Fixes the rest of the places we use the pattern of emptying the OpenGL error stack to be able to handle GL_CONTEXT_LOST, and adds a note about it in the documentation. Change-Id: I7eb97dbca45f39295b832d44937023b538b19947 Reviewed-by: David Edmundson Reviewed-by: Laszlo Agocs --- src/gui/opengl/qopengldebug.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/gui/opengl/qopengldebug.cpp') diff --git a/src/gui/opengl/qopengldebug.cpp b/src/gui/opengl/qopengldebug.cpp index f6c3af37dd..7072db5af4 100644 --- a/src/gui/opengl/qopengldebug.cpp +++ b/src/gui/opengl/qopengldebug.cpp @@ -100,6 +100,10 @@ QT_BEGIN_NAMESPACE \endcode + If you try to clear the error stack, make sure not just keep going until + GL_NO_ERROR is returned but also break on GL_CONTEXT_LOST as that error + value will keep repeating. + There are also many other information we are interested in (as application developers), for instance performance issues, or warnings about using deprecated APIs. Those kind of messages are not reported through the -- cgit v1.2.3