diff options
Diffstat (limited to 'src/glx.cpp')
| -rw-r--r-- | src/glx.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/glx.cpp b/src/glx.cpp index 4a18876..42a22ed 100644 --- a/src/glx.cpp +++ b/src/glx.cpp @@ -66,3 +66,11 @@ destroyGLXContextAndWindow (glx_state_t *state) XCloseDisplay (state->dpy); } } + +void +cleanup_state_glx (void *data) +{ + glx_state_t *state = (glx_state_t*)data; + destroyGLXContextAndWindow(state); + free(state); +} |