Skip to content
Commit 0a73e7bf authored by Adam Jackson's avatar Adam Jackson
Browse files

composite: Make compIsAlternateVisual safe even if Composite is off



As of ea483af9 we're calling this unconditionally from the GLX code so
the synthetic visual is in a lower select group. If Composite has been
disabled then GetCompScreen() will return NULL, and this would crash.

Rather than force the caller to check first, just always return FALSE if
Composite is disabled (which is correct, since none of the visuals will
be synthetic in that case).

Signed-off-by: default avatarAdam Jackson <ajax@redhat.com>
Reviewed-by: default avatarAaron Plattner <aplattner@nvidia.com>
(cherry picked from commit f8011912)
parent 06d1c83d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment