swrastg: Fix defines to be able to load more then one sw driver
authorJakob Bornecrantz <wallbraker@gmail.com>
Wed, 14 Apr 2010 20:44:48 +0000 (21:44 +0100)
committerJakob Bornecrantz <wallbraker@gmail.com>
Wed, 14 Apr 2010 22:10:17 +0000 (23:10 +0100)
src/gallium/targets/dri-swrast/swrast_drm_api.c

index 99c25543a760270356d45a14694245439d49ed04..63b935bb07b52d327f2a4c16940d04cb9d8c7a0c 100644 (file)
@@ -68,16 +68,16 @@ swrast_create_screen(struct sw_winsys *winsys)
 #if defined(GALLIUM_CELL)
    if (screen == NULL && strcmp(driver, "cell") == 0)
       screen = cell_create_screen( winsys );
-#elif defined(GALLIUM_LLVMPIPE)
+#endif
+
+#if defined(GALLIUM_LLVMPIPE)
    if (screen == NULL && strcmp(driver, "llvmpipe") == 0)
       screen = llvmpipe_create_screen( winsys );
-#elif defined(GALLIUM_SOFTPIPE)
+#endif
+
+#if defined(GALLIUM_SOFTPIPE)
    if (screen == NULL)
       screen = softpipe_create_screen( winsys );
-
-   (void) driver;
-#else
-   (void) driver;
 #endif
 
    return screen;