Better glx config selection

This commit is contained in:
dec05eba
2024-09-26 17:35:16 +02:00
parent 2a87561d34
commit 69c3102465
2 changed files with 84 additions and 29 deletions

View File

@@ -213,7 +213,8 @@ struct gsr_egl {
const char *dri_card_path;
void *glx_context;
void *glx_fb_config;
GLXFBConfig *glx_fb_configs;
GLXFBConfig glx_fb_config;
gsr_gpu_info gpu_info;
@@ -246,7 +247,9 @@ struct gsr_egl {
FUNC_eglQueryDmaBufModifiersEXT eglQueryDmaBufModifiersEXT;
__GLXextFuncPtr (*glXGetProcAddress)(const unsigned char *procName);
GLXFBConfig* (*glXChooseFBConfig)(Display *dpy, int screen, const int *attribList, int *nitems);
int (*glXGetFBConfigAttrib)(Display *dpy, GLXFBConfig config, int attribute, int *value);
GLXFBConfig* (*glXGetFBConfigs)(Display *dpy, int screen, int *nelements);
XVisualInfo* (*glXGetVisualFromFBConfig)(Display *dpy, GLXFBConfig config);
Bool (*glXMakeContextCurrent)(Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx);
// TODO: Remove
GLXContext (*glXCreateNewContext)(Display *dpy, GLXFBConfig config, int renderType, GLXContext shareList, Bool direct);