libgl-xlib: Obey GALLIUM_SOFTPIPE define.
authorJosé Fonseca <jfonseca@vmware.com>
Mon, 15 Mar 2010 21:03:59 +0000 (21:03 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Mon, 15 Mar 2010 21:04:58 +0000 (21:04 +0000)
src/gallium/targets/libgl-xlib/xlib.c

index 05dc8db57d97969969801516912f11711d6eeaa0..5bb6c5c38ce9b79f3836648998d6d32dd52285b7 100644 (file)
@@ -81,8 +81,10 @@ swrast_xlib_create_screen( Display *display )
       screen = llvmpipe_create_screen( winsys );
 #endif
 
+#if defined(GALLIUM_SOFTPIPE)
    if (screen == NULL)
       screen = softpipe_create_screen( winsys );
+#endif
 
    if (screen == NULL)
       goto fail;