summaryrefslogtreecommitdiff
path: root/src/glx/x11/glxcmds.c
diff options
context:
space:
mode:
authorKristof Ralovich <kristof.ralovich@gmail.com>2008-08-20 15:18:38 -0600
committerBrian Paul <brian.paul@tungstengraphics.com>2008-08-20 15:33:03 -0600
commite2060348630b59a446bac7f734fdde40033093ab (patch)
tree2920967978965236aa4e4f667513d70fe72ca5a8 /src/glx/x11/glxcmds.c
parentfb36a54a1c327efc6602ff104b097359f9823931 (diff)
glx: free vertex array state when context is destroyed
Diffstat (limited to 'src/glx/x11/glxcmds.c')
-rw-r--r--src/glx/x11/glxcmds.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/glx/x11/glxcmds.c b/src/glx/x11/glxcmds.c
index 6cafb33b1f..0f0cb6233a 100644
--- a/src/glx/x11/glxcmds.c
+++ b/src/glx/x11/glxcmds.c
@@ -532,6 +532,8 @@ DestroyContext(Display *dpy, GLXContext gc)
}
#endif
+ __glXFreeVertexArrayState(gc);
+
if (gc->currentDpy) {
/* Have to free later cuz it's in use now */
__glXUnlock();