mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 03:48:06 +02:00
demos: ensure display lists are destroyed for next generation
This commit is contained in:
parent
29d9abf72d
commit
b2a69ae879
1 changed files with 4 additions and 0 deletions
|
|
@ -385,6 +385,10 @@ draw( Display *dpy, Window win )
|
|||
} else
|
||||
do_draw();
|
||||
|
||||
glDeleteLists(gear1, 1);
|
||||
glDeleteLists(gear2, 1);
|
||||
glDeleteLists(gear3, 1);
|
||||
|
||||
glXSwapBuffers(dpy, win);
|
||||
glXDestroyContext(dpy, ctx);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue