summaryrefslogtreecommitdiff
path: root/vcl/opengl
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2015-09-08 21:25:17 +0100
committerMichael Meeks <michael.meeks@collabora.com>2015-09-08 21:27:29 +0100
commita37d3b1c5cc1186142ab75c7cb15f4bbf07f8435 (patch)
treec022e8ce15c6a1c3fadebe35a6801a49f9d83ead /vcl/opengl
parent1553ace0a46c2659540dbf746aa862ccbb160ffd (diff)
OpenGL: use CHECK_GL_ERROR() only when a context is bound.
Removes a large number of spurious GL errors left & right. Change-Id: I0b5639478812982b39d3b88be2600dad5d3f1fd0
Diffstat (limited to 'vcl/opengl')
-rw-r--r--vcl/opengl/gdiimpl.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/opengl/gdiimpl.cxx b/vcl/opengl/gdiimpl.cxx
index 54873479b991..21208b372a14 100644
--- a/vcl/opengl/gdiimpl.cxx
+++ b/vcl/opengl/gdiimpl.cxx
@@ -1863,9 +1863,9 @@ void OpenGLSalGraphicsImpl::endPaint()
mpContext->AcquireDefaultFramebuffer();
glFlush();
mpContext->swapBuffers();
- }
- CHECK_GL_ERROR();
+ CHECK_GL_ERROR();
+ }
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */