mirror of https://github.com/yshui/picom.git
backend: glx: don't return false from a function returning void *
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
e90757a6ec
commit
47bb825b2c
|
@ -371,12 +371,12 @@ glx_bind_pixmap(backend_t *base, xcb_pixmap_t pixmap, struct xvisual_info fmt, b
|
||||||
if (fmt.visual_depth > OPENGL_MAX_DEPTH) {
|
if (fmt.visual_depth > OPENGL_MAX_DEPTH) {
|
||||||
log_error("Requested depth %d higher than max possible depth %d.",
|
log_error("Requested depth %d higher than max possible depth %d.",
|
||||||
fmt.visual_depth, OPENGL_MAX_DEPTH);
|
fmt.visual_depth, OPENGL_MAX_DEPTH);
|
||||||
return false;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fmt.visual_depth < 0) {
|
if (fmt.visual_depth < 0) {
|
||||||
log_error("Pixmap %#010x with invalid depth %d", pixmap, fmt.visual_depth);
|
log_error("Pixmap %#010x with invalid depth %d", pixmap, fmt.visual_depth);
|
||||||
return false;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
auto r =
|
auto r =
|
||||||
|
|
Loading…
Reference in New Issue