]> git.tdb.fi Git - geometrycompositor.git/commitdiff
Unbind the vertex array after rendering
authorMikko Rasa <tdb@tdb.fi>
Sat, 12 Dec 2015 16:20:42 +0000 (18:20 +0200)
committerMikko Rasa <tdb@tdb.fi>
Sat, 12 Dec 2015 16:20:42 +0000 (18:20 +0200)
Otherwise buffer updates could inadvertently affect the last used vertex
array.

source/main.c

index 6412285729296df8fabe6f8053612bd7ac3da8b4..92537e21a59bf3c01dee00ec66e94bb75109cde1 100644 (file)
@@ -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;