]> git.tdb.fi Git - geometrycompositor.git/blobdiff - source/main.c
Unbind the vertex array after rendering
[geometrycompositor.git] / 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;