st/mesa: simplify returning GL_VENDOR
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
parent
92b4ca4550
commit
66b6babbea
|
@ -47,9 +47,7 @@ st_get_string(struct gl_context * ctx, GLenum name)
|
||||||
|
|
||||||
switch (name) {
|
switch (name) {
|
||||||
case GL_VENDOR: {
|
case GL_VENDOR: {
|
||||||
const char *vendor = screen->get_vendor( screen );
|
return (GLubyte *) screen->get_vendor(screen);
|
||||||
util_snprintf(st->vendor, sizeof(st->vendor), "%s", vendor);
|
|
||||||
return (GLubyte *) st->vendor;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
case GL_RENDERER:
|
case GL_RENDERER:
|
||||||
|
|
|
@ -163,8 +163,6 @@ struct st_context
|
||||||
GLuint fb_orientation;
|
GLuint fb_orientation;
|
||||||
} state;
|
} state;
|
||||||
|
|
||||||
char vendor[100];
|
|
||||||
|
|
||||||
uint64_t dirty; /**< dirty states */
|
uint64_t dirty; /**< dirty states */
|
||||||
|
|
||||||
/** This masks out unused shader resources. Only valid in draw calls. */
|
/** This masks out unused shader resources. Only valid in draw calls. */
|
||||||
|
|
Loading…
Reference in New Issue