From 44e0516f74915a4e50fdb48d3d2fa90df9013b12 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sat, 12 Dec 2015 18:20:42 +0200 Subject: [PATCH] Unbind the vertex array after rendering Otherwise buffer updates could inadvertently affect the last used vertex array. --- source/main.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.45.2