33 lines
1.1 KiB
Diff
33 lines
1.1 KiB
Diff
|
From bb5ac44693cc6a50de068c729a089b7bdd6db4cd Mon Sep 17 00:00:00 2001
|
||
|
From: Egbert Eich <eich@freedesktop.org>
|
||
|
Date: Thu, 9 Jun 2011 12:42:59 +0200
|
||
|
Subject: [PATCH] [GLX/SWrast] Make GLX with SWrast enabled work on older Xservers.
|
||
|
Patch-mainline: To be upstreamed
|
||
|
|
||
|
Older Xservers don't offer a set of configs/visuals that is compatible
|
||
|
with DRI. If no visuals or configs are found let driswCreateScreen()
|
||
|
fail so that the next fallback path is take.
|
||
|
|
||
|
Signed-off-by: Egbert Eich <eich@freedesktop.org>
|
||
|
---
|
||
|
src/glx/drisw_glx.c | 3 +++
|
||
|
1 files changed, 3 insertions(+), 0 deletions(-)
|
||
|
|
||
|
diff --git a/src/glx/drisw_glx.c b/src/glx/drisw_glx.c
|
||
|
index 2eaa3c5..7bf29af 100644
|
||
|
--- a/src/glx/drisw_glx.c
|
||
|
+++ b/src/glx/drisw_glx.c
|
||
|
@@ -490,6 +490,9 @@ driswCreateScreen(int screen, struct glx_display *priv)
|
||
|
psc->base.visuals =
|
||
|
driConvertConfigs(psc->core, psc->base.visuals, driver_configs);
|
||
|
|
||
|
+ if (psc->base.configs == NULL || psc->base.visuals == NULL)
|
||
|
+ goto handle_error;
|
||
|
+
|
||
|
psc->driver_configs = driver_configs;
|
||
|
|
||
|
psc->base.vtable = &drisw_screen_vtable;
|
||
|
--
|
||
|
1.7.3.4
|
||
|
|