diff options
author | Marek Olšák <[email protected]> | 2017-06-07 22:04:34 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-06-19 20:09:52 +0200 |
commit | 66b6babbeab510b17cbb325dab3cd7cfbe1f9674 (patch) | |
tree | 53d5a7a6db7d022566a079f2cfe017d2a298345b /src/mesa/state_tracker/st_cb_strings.c | |
parent | 92b4ca45504e7ffc5f4fa385ada1be48e6123181 (diff) |
st/mesa: simplify returning GL_VENDOR
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_cb_strings.c')
-rw-r--r-- | src/mesa/state_tracker/st_cb_strings.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mesa/state_tracker/st_cb_strings.c b/src/mesa/state_tracker/st_cb_strings.c index 99d93a7c8f5..85fe5a7ef61 100644 --- a/src/mesa/state_tracker/st_cb_strings.c +++ b/src/mesa/state_tracker/st_cb_strings.c @@ -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: |