simple-egl: Only set alpha_size=0 when -o is passed.
authorScott Moreau <oreaus@gmail.com>
Thu, 30 Aug 2012 20:44:16 +0000 (14:44 -0600)
committerKristian Høgsberg <krh@bitplanet.net>
Fri, 31 Aug 2012 23:43:08 +0000 (19:43 -0400)
commit6a615d262141de7cf094788203d9c044dfb9f08d
tree65047e4afc9b8a4e16de148a3da1a423f495c245
parent1ee53e78db391a8a61423d3b738044efee614d93
simple-egl: Only set alpha_size=0 when -o is passed.

When starting simple-egl with -f for fullscreen and toggling to 'windowed' mode with F11,
the surface is opaque instead of semi-trnasparent as it is when starting without -f. We
only want to create the surface with alpha_size=0 when the user explicitly passes -o
because otherwise it will never have the ability to use alpha.
clients/simple-egl.c