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:
parent
6034c77bc2
commit
bf43d28ebe
3 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
2
src/x.c
2
src/x.c
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue