mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-25 21:00:22 +01:00
gallium: Don't ask winsys name -- let pipe screen do that if it wants.
Allows to leave screen->winsys NULL.
This commit is contained in:
parent
b5d96a3e7f
commit
ecc0e1ec2e
1 changed files with 2 additions and 5 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue