Destroy glx context on fail/deinit

This commit is contained in:
dec05eba
2024-03-21 10:49:11 +01:00
parent 61a25c0dcc
commit c2af57a978
2 changed files with 15 additions and 0 deletions

View File

@@ -213,6 +213,7 @@ struct gsr_egl {
Bool (*glXMakeContextCurrent)(Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx);
// TODO: Remove
GLXContext (*glXCreateNewContext)(Display *dpy, GLXFBConfig config, int renderType, GLXContext shareList, Bool direct);
void (*glXDestroyContext)(Display *dpy, GLXContext ctx);
void (*glXSwapBuffers)(Display *dpy, GLXDrawable drawable);
FUNC_glXCreateContextAttribsARB glXCreateContextAttribsARB;