st/mesa: simplify returning GL_VENDOR

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
Marek Olšák 2017-06-07 22:04:34 +02:00
parent 92b4ca4550
commit 66b6babbea
2 changed files with 1 additions and 5 deletions

View File

@ -47,9 +47,7 @@ st_get_string(struct gl_context * ctx, GLenum name)
switch (name) {
case GL_VENDOR: {
const char *vendor = screen->get_vendor( screen );
util_snprintf(st->vendor, sizeof(st->vendor), "%s", vendor);
return (GLubyte *) st->vendor;
return (GLubyte *) screen->get_vendor(screen);
}
case GL_RENDERER:

View File

@ -163,8 +163,6 @@ struct st_context
GLuint fb_orientation;
} state;
char vendor[100];
uint64_t dirty; /**< dirty states */
/** This masks out unused shader resources. Only valid in draw calls. */