gallium: Don't ask winsys name -- let pipe screen do that if it wants.
authorJosé Fonseca <jfonseca@vmware.com>
Fri, 30 Jan 2009 22:04:15 +0000 (22:04 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Fri, 30 Jan 2009 22:04:15 +0000 (22:04 +0000)
Allows to leave screen->winsys NULL.

src/mesa/state_tracker/st_cb_strings.c

index 27e396ab467f7989acc63073525943f246ed8216..2036ccafbfb00d046f917fc43c0acc020f6e13a4 100644 (file)
@@ -36,8 +36,6 @@
 #include "main/version.h"
 #include "pipe/p_context.h"
 #include "pipe/p_screen.h"
-/* We want the name of the winsys we're running on*/
-#include "pipe/internal/p_winsys_screen.h"
 #include "st_context.h"
 #include "st_cb_strings.h"
 
@@ -68,10 +66,9 @@ st_get_string(GLcontext * ctx, GLenum name)
    }
 
    case GL_RENDERER:
-      util_snprintf(st->renderer, sizeof(st->renderer), "Gallium %s, %s on %s", 
+      util_snprintf(st->renderer, sizeof(st->renderer), "Gallium %s on %s", 
                ST_VERSION_STRING,
-              screen->get_name( screen ),
-              screen->winsys->get_name( screen->winsys ));
+              screen->get_name( screen ));
 
       return (GLubyte *) st->renderer;