From: Mikko Rasa Date: Sat, 12 Dec 2015 16:20:42 +0000 (+0200) Subject: Unbind the vertex array after rendering X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=44e0516f74915a4e50fdb48d3d2fa90df9013b12;p=geometrycompositor.git Unbind the vertex array after rendering Otherwise buffer updates could inadvertently affect the last used vertex array. --- diff --git a/source/main.c b/source/main.c index 6412285..92537e2 100644 --- a/source/main.c +++ b/source/main.c @@ -976,6 +976,8 @@ void refresh_screen(Compositor *compositor, CompositedScreen *screen) glDrawElements(GL_TRIANGLE_STRIP, monitor->nelements, GL_UNSIGNED_SHORT, NULL); } + glBindVertexArray(0); + glXSwapBuffers(compositor->display, screen->glx_window); screen->dirty = 0;