Call glxext_init from glx_init

Make sure we query the extensions.

Also don't start glx string marker logger for new backends yet.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui
2019-02-21 23:25:31 +00:00
parent 23ee4c6cbe
commit 9cce1efe3f
2 changed files with 5 additions and 2 deletions

View File

@ -233,6 +233,7 @@ static void glx_deinit(void *backend_data, session_t *ps) {
*/
static void *glx_init(session_t *ps) {
bool success = false;
glxext_init(ps->dpy, ps->scr);
auto gd = ccalloc(1, struct _glx_data);
XVisualInfo *pvis = NULL;
@ -264,8 +265,10 @@ static void *glx_init(session_t *ps) {
}
// Ensure GLX_EXT_texture_from_pixmap exists
if (!glxext.has_GLX_EXT_texture_from_pixmap)
if (!glxext.has_GLX_EXT_texture_from_pixmap) {
log_error("GLX_EXT_texture_from_pixmap is not supported by your driver");
goto end;
}
// Initialize GLX data structure
for (int i = 0; i < MAX_BLUR_PASS; ++i) {