aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-09-26 17:35:16 +0200
committerdec05eba <dec05eba@protonmail.com>2024-09-26 17:35:16 +0200
commit69c3102465e1d0246d2f78073b517e2779733054 (patch)
treeeb12bbe827888d315acf7d1c7359a9ed18a50b53 /include
parent2a87561d34a5c7b614790f210c9bb007bfc3f8b2 (diff)
Better glx config selection
Diffstat (limited to 'include')
-rw-r--r--include/egl.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/egl.h b/include/egl.h
index 3fdbf48..5a2efb4 100644
--- a/include/egl.h
+++ b/include/egl.h
@@ -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);