1
0
Fork 0
mirror of https://github.com/yshui/picom.git synced 2025-04-21 18:03:02 -04:00

minor modifications for tests and no-opengl build

This commit is contained in:
bhagwan 2020-05-05 16:28:28 -07:00 committed by Yuxuan Shui
parent 6034c77bc2
commit bf43d28ebe
No known key found for this signature in database
GPG key ID: D3A4405BE6CC17F4
3 changed files with 4 additions and 1 deletions

View file

@ -1271,7 +1271,6 @@ bool glx_round_corners_dst(session_t *ps, struct managed_win *w, const glx_textu
const region_t *reg_tgt attr_unused,
glx_blur_cache_t *pbc attr_unused) {
assert(shader_idx >= 0 && shader_idx <= 1);
assert(ps->psglx->round_passes[0].prog);
assert(ps->psglx->round_passes[1].prog);
bool ret = false;

View file

@ -1861,9 +1861,11 @@ static session_t *session_init(int argc, char **argv, Display *dpy,
ext_info = xcb_get_extension_data(ps->c, &xcb_glx_id);
if (ext_info && ext_info->present) {
#if CONFIG_OPENGL
ps->glx_exists = true;
ps->glx_error = ext_info->first_error;
ps->glx_event = ext_info->first_event;
#endif
}
// Parse configuration file

View file

@ -453,6 +453,7 @@ _x_strerror(unsigned long serial, uint8_t major, uint16_t minor, uint8_t error_c
CASESTRRET2(RENDER_GLYPH);
}
#ifdef CONFIG_OPENGL
if (ps->glx_exists) {
o = error_code - ps->glx_error;
switch (o) {
@ -472,6 +473,7 @@ _x_strerror(unsigned long serial, uint8_t major, uint16_t minor, uint8_t error_c
CASESTRRET2(GLX_GLX_BAD_PROFILE_ARB);
}
}
#endif
if (ps->xsync_exists) {
o = error_code - ps->xsync_error;