summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2014-11-17 00:28:29 +0100
committerJan Holesovsky <kendy@collabora.com>2014-11-17 23:19:48 +0100
commit4c85f9a370e4dfc1ffde4f1b6a54c98a0d7ece79 (patch)
tree965657a83d5f32091d49819c5fe9793c186c0e1b
parentaf85db1aa3468ccf17de72a661d10631df0736ee (diff)
opengl: Do not check for OpenGL errors in a loop.
Can lead to an infinite loop. Change-Id: I09863959719115aec23534ac72a9a9690af3aeb9
-rw-r--r--vcl/source/opengl/OpenGLHelper.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/opengl/OpenGLHelper.cxx b/vcl/source/opengl/OpenGLHelper.cxx
index fda89c335c27..6e2fe2c1de4f 100644
--- a/vcl/source/opengl/OpenGLHelper.cxx
+++ b/vcl/source/opengl/OpenGLHelper.cxx
@@ -353,7 +353,7 @@ float OpenGLHelper::getGLVersion()
void OpenGLHelper::checkGLError(const char* pFile, size_t nLine)
{
GLenum glErr = glGetError();
- while (glErr != GL_NO_ERROR)
+ if (glErr != GL_NO_ERROR)
{
const char* sError = OpenGLHelper::GLErrorString(glErr);