aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/glx
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2010-12-01 20:21:30 +0000
committermarha <marha@users.sourceforge.net>2010-12-01 20:21:30 +0000
commitfea28ce54ffbea6eda28791518ccca0e0df2df0d (patch)
tree3d123dd2364104108e1957d90f7d8a66c46ba80f /xorg-server/glx
parenta7f914ef9256ee2d287e77384c01181734fd3df2 (diff)
downloadvcxsrv-fea28ce54ffbea6eda28791518ccca0e0df2df0d.tar.gz
vcxsrv-fea28ce54ffbea6eda28791518ccca0e0df2df0d.tar.bz2
vcxsrv-fea28ce54ffbea6eda28791518ccca0e0df2df0d.zip
Solved mistake in latest merge
Diffstat (limited to 'xorg-server/glx')
-rw-r--r--xorg-server/glx/glxscreens.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/xorg-server/glx/glxscreens.c b/xorg-server/glx/glxscreens.c
index f44990810..ce513dda7 100644
--- a/xorg-server/glx/glxscreens.c
+++ b/xorg-server/glx/glxscreens.c
@@ -402,6 +402,10 @@ void __glXScreenInit(__GLXscreen *pGlxScreen, ScreenPtr pScreen)
if (i == pScreen->numVisuals)
continue;
+ /* Make sure the FBconfig supports window drawables */
+ if (!(config->drawableType & GLX_WINDOW_BIT))
+ continue;
+
/* Create a new X visual for our FBconfig. */
visual = AddScreenVisuals(pScreen, 1, depth);
if (visual == NULL)