diff options
author | Jan Holesovsky <kendy@collabora.com> | 2014-11-17 00:28:29 +0100 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2014-11-18 00:51:04 +0100 |
commit | 3852d46941107c0ad596cfc0fe9098433292994c (patch) | |
tree | a5078fd07d86149a6d6789791e6c9c4db7c3c2cd /vcl | |
parent | b829f8352c85593c209ba0f44d83da3a126058a4 (diff) |
opengl: Do not check for OpenGL errors in a loop.
Can lead to an infinite loop.
Change-Id: I09863959719115aec23534ac72a9a9690af3aeb9
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/opengl/OpenGLHelper.cxx | 2 |
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); |