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

glx: Move Composite's synthetic visuals to a different select group



Should you find yourself using a 16bpp display while also using a
compositor, you poor soul, you may find that your GLX applications
behave strangely; in particular, glxgears will be transparent. This is
because it clears to (0,0,0,0) which is transparent if you honor alpha,
and it will choose the synthetic visual because it has the most
available r/g/b bits.

To avoid this, bump synthetic visuals to a higher (less-preferred)
select group. Unless the client explicitly asks for non-zero alpha bits,
this will prefer any rgb565 visual ahead of the argb8888 visual.

Reviewed-by: default avatarEric Anholt <eric@anholt.net>
Signed-off-by: default avatarAdam Jackson <ajax@redhat.com>
(cherry picked from commit ea483af9)
parent 4c64b20a
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