xserver/hw/xwin/glx
Jon Turney ad6b4113cd hw/xwin/glx: Fallback to ChoosePixelFormat() if wglChoosePixelFormatARB() fails
In glxWinSetPixelFormat() handle the case where wglChoosePixelFormatARB()
fails and fallback to ChoosePixelFormat()

It seems for some drivers, wglChoosePixelFormatARB() can fail when the
provided DC doesn't belong to the driver (e.g. it's a compatible DC for a
bitmap, so allow a fallback to ChoosePixelFormat() if it fails.

Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk>
Reviewed-by: Colin Harrison <colin.harrison@virgin.net>
2018-09-25 16:02:09 +01:00
..
.gitignore hw/xwin/glx: Update .gitignore 2014-08-29 13:49:08 +01:00
Makefile.am meson: Add dependency on generated code fragments in hw/xwin/glx/ 2017-12-13 11:32:53 -05:00
dri_helpers.c Add Windows-DRI extension 2016-09-15 20:10:29 +01:00
dri_helpers.h Add Windows-DRI extension 2016-09-15 20:10:29 +01:00
gen_gl_wrappers.py hw/xwin/glx: Improve code generator to deal with latest Khronos OpenGL registry XML 2015-03-16 16:35:19 +00:00
glshim.c meson: Add dependency on generated code fragments in hw/xwin/glx/ 2017-12-13 11:32:53 -05:00
glthunk.c meson: Add dependency on generated code fragments in hw/xwin/glx/ 2017-12-13 11:32:53 -05:00
glwindows.h hw/xwin: Add an idempotency guard to glwindows.h 2014-08-29 13:40:26 +01:00
indirect.c hw/xwin/glx: Fallback to ChoosePixelFormat() if wglChoosePixelFormatARB() fails 2018-09-25 16:02:09 +01:00
indirect.h xwin/glx: remove unused __GLXWinScreen::glx_enable_bits 2017-08-22 10:59:40 -04:00
meson.build meson.build: Fix hw/xwin build when dependencies are installed in a non-default location 2018-01-22 13:50:20 -05:00
wgl_ext_api.c meson: Add dependency on generated code fragments in hw/xwin/glx/ 2017-12-13 11:32:53 -05:00
wgl_ext_api.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
winpriv.c xwin: remove always true/set XWIN_MULTIWINDOW conditional/define 2017-08-22 10:59:41 -04:00
winpriv.h Add Windows-DRI extension 2016-09-15 20:10:29 +01:00