mirror of
https://github.com/yshui/picom.git
synced 2025-04-21 18:03:02 -04:00
Fix NULL dereference in glx_update_fbconfig
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
1a0f31c32e
commit
645100f1e3
1 changed files with 4 additions and 4 deletions
|
@ -182,12 +182,12 @@ glx_update_fbconfig(session_t *ps) {
|
|||
}
|
||||
|
||||
if (!ps->psglx->fbconfigs[32]) {
|
||||
log_error("No FBConfig found for depth 32. Expect crazy things.");
|
||||
log_error("No FBConfig found for depth 32. compton will try to continue.");
|
||||
} else {
|
||||
log_trace("%d-bit: %p, 32-bit: %p", ps->depth,
|
||||
ps->psglx->fbconfigs[ps->depth]->cfg, ps->psglx->fbconfigs[32]->cfg);
|
||||
}
|
||||
|
||||
log_trace("%d-bit: %p, 32-bit: %p", ps->depth, ps->psglx->fbconfigs[ps->depth]->cfg,
|
||||
ps->psglx->fbconfigs[32]->cfg);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue