[PATCH] glx: Attempt to load swrastg too

Adam Jackson ajax at redhat.com
Tue Apr 19 10:41:43 PDT 2011


Signed-off-by: Adam Jackson <ajax at redhat.com>
---
 glx/glxdriswrast.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/glx/glxdriswrast.c b/glx/glxdriswrast.c
index ed142c1..5c123a2 100644
--- a/glx/glxdriswrast.c
+++ b/glx/glxdriswrast.c
@@ -444,6 +444,14 @@ __glXDRIscreenProbe(ScreenPtr pScreen)
 				    (void **)&screen->swrast,
 				    __DRI_SWRAST, __DRI_SWRAST_VERSION);
     if (screen->driver == NULL) {
+	driverName = "swrastg";
+	screen->driver = glxProbeDriver(driverName,
+					(void **)&screen->core,
+					__DRI_CORE, __DRI_CORE_VERSION,
+					(void **)&screen->swrast,
+					__DRI_SWRAST, __DRI_SWRAST_VERSION);
+    }
+    if (screen->driver == NULL) {
         goto handle_error;
     }
 
-- 
1.7.4.4



More information about the xorg-devel mailing list