diff options
Diffstat (limited to 'glx/glxscreens.c')
-rw-r--r-- | glx/glxscreens.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/glx/glxscreens.c b/glx/glxscreens.c index 8515e14d5..353c798d3 100644 --- a/glx/glxscreens.c +++ b/glx/glxscreens.c @@ -425,6 +425,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) |