[X11] Fixed GLControl on nvidia binary drivers
authorStefanos A <stapostol@gmail.com>
Sun, 20 Jul 2014 09:28:43 +0000 (11:28 +0200)
committerStefanos A <stapostol@gmail.com>
Sun, 20 Jul 2014 09:28:43 +0000 (11:28 +0200)
commit6fa70263cb27e2be1e23776fcf37e71d124c3865
tree26556108d8bf8775a8c344c3bbdb919c1e19f2b0
parentd75a2ce43909d62a258c7a8af08a589a2225e334
[X11] Fixed GLControl on nvidia binary drivers

Nvidia drivers fail in Glx.MakeCurrent() when using a 32bpp
visual on a window created with a 24bpp visual. Since we do
not know the actual visual until after the context is constructed,
the solution is to implicitly use 24bpp when 32bpp is requested.

The loss of the alpha channel does not have a user-visible effect,
since WinForms do not support translucent windows on X11.
Source/GLControl/X11GLControl.cs