Add several debug prints
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
312643c454
commit
838a214749
|
@ -353,6 +353,7 @@ glx_bind_pixmap(backend_t *base, xcb_pixmap_t pixmap, struct xvisual_info fmt, b
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
log_trace("Binding pixmap %#010x", pixmap);
|
||||||
auto wd = ccalloc(1, struct _glx_image_data);
|
auto wd = ccalloc(1, struct _glx_image_data);
|
||||||
wd->pixmap = pixmap;
|
wd->pixmap = pixmap;
|
||||||
wd->texture.width = wd->texture.ewidth = r->width;
|
wd->texture.width = wd->texture.ewidth = r->width;
|
||||||
|
@ -394,6 +395,8 @@ glx_bind_pixmap(backend_t *base, xcb_pixmap_t pixmap, struct xvisual_info fmt, b
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
log_trace("GLXPixmap %#010lx", wd->glpixmap);
|
||||||
|
|
||||||
// Create texture
|
// Create texture
|
||||||
wd->texture.texture = gl_new_texture(GL_TEXTURE_2D);
|
wd->texture.texture = gl_new_texture(GL_TEXTURE_2D);
|
||||||
wd->texture.opacity = 1;
|
wd->texture.opacity = 1;
|
||||||
|
|
|
@ -200,6 +200,7 @@ _win_bind_image(session_t *ps, win *w, void **win_image, void **shadow_image) {
|
||||||
free(e);
|
free(e);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
log_trace("New named pixmap %#010x", pixmap);
|
||||||
*win_image = ps->backend_data->ops->bind_pixmap(
|
*win_image = ps->backend_data->ops->bind_pixmap(
|
||||||
ps->backend_data, pixmap, x_get_visual_info(ps->c, w->a.visual), true);
|
ps->backend_data, pixmap, x_get_visual_info(ps->c, w->a.visual), true);
|
||||||
if (!*win_image) {
|
if (!*win_image) {
|
||||||
|
|
Loading…
Reference in New Issue