aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon TURNEY <jon.turney@dronecode.org.uk>2014-01-11 16:35:31 +0000
committerMike DePaulo <mikedep333@gmail.com>2015-07-26 11:37:30 -0400
commit99bcd3b2f6ebb98c4004cd4b6f21cc9f886b65a5 (patch)
tree34f26e84e0d04696b6daf4cf0c06ae4a0d634589
parent9ece505c5ca92218e41adedfa6d8c47574bd9271 (diff)
downloadvcxsrv-99bcd3b2f6ebb98c4004cd4b6f21cc9f886b65a5.tar.gz
vcxsrv-99bcd3b2f6ebb98c4004cd4b6f21cc9f886b65a5.tar.bz2
vcxsrv-99bcd3b2f6ebb98c4004cd4b6f21cc9f886b65a5.zip
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> Ported to VcXsrv (X2Go/Arctica Builds) by Mike DePaulo
-rwxr-xr-xxorg-server/hw/xwin/glx/indirect.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/xorg-server/hw/xwin/glx/indirect.c b/xorg-server/hw/xwin/glx/indirect.c
index ada61561b..07bd91ad2 100755
--- a/xorg-server/hw/xwin/glx/indirect.c
+++ b/xorg-server/hw/xwin/glx/indirect.c
@@ -2092,6 +2092,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...
@@ -2435,6 +2437,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: