diff options
author | Jon TURNEY <jon.turney@dronecode.org.uk> | 2014-01-11 16:35:31 +0000 |
---|---|---|
committer | Jon TURNEY <jon.turney@dronecode.org.uk> | 2014-01-11 18:06:55 +0000 |
commit | fadf220c47f889720f7a4bca9f0f6e1bab9b27be (patch) | |
tree | ce191cf0bd8a81e9128f928cddb1234b696ec52d | |
parent | 5da734cc5c1ae235cbb5a778ff0325702a6e79d1 (diff) |
hw/xwin/glx: Don't create fbConfigs for un-accelerated pixelFormats
For some reason, glxinfo is now selecting an un-accelerated fbConfig, which
leads to "GDI Generic" being reported as the renderer name.
For the moment, just don't create fbConfigs for un-accelerated pixelFormats.
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
-rw-r--r-- | hw/xwin/glx/indirect.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/xwin/glx/indirect.c b/hw/xwin/glx/indirect.c index 3d01bed39..e8e75d534 100644 --- a/hw/xwin/glx/indirect.c +++ b/hw/xwin/glx/indirect.c @@ -1937,6 +1937,8 @@ glxWinCreateConfigs(HDC hdc, glxWinScreen * screen) /* EXT_visual_rating / GLX 1.2 */ if (pfd.dwFlags & PFD_GENERIC_FORMAT) { c->base.visualRating = GLX_SLOW_VISUAL_EXT; + GLWIN_DEBUG_MSG("pixelFormat %d is un-accelerated, skipping", i + 1); + continue; } else { // PFD_GENERIC_ACCELERATED is not considered, so this may be MCD or ICD acclerated... @@ -2277,6 +2279,8 @@ glxWinCreateConfigsExt(HDC hdc, glxWinScreen * screen) case WGL_NO_ACCELERATION_ARB: c->base.visualRating = GLX_SLOW_VISUAL_EXT; + GLWIN_DEBUG_MSG("pixelFormat %d is un-accelerated, skipping", i + 1); + continue; break; case WGL_GENERIC_ACCELERATION_ARB: |