diff options
author | Brian Paul <brianp@vmware.com> | 2015-03-07 13:15:22 -0700 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2015-03-11 09:34:24 -0600 |
commit | d7193ce42cedc4cc7839fc4522edf5724e954c80 (patch) | |
tree | b24eb2b2fd2d0df24423fac7858fdbd76db191ac /src/mesa/main/transformfeedback.c | |
parent | 5376bc74ccfac0d1a4df6c5652e075d99e3f4fe4 (diff) | |
download | external_mesa3d-d7193ce42cedc4cc7839fc4522edf5724e954c80.zip external_mesa3d-d7193ce42cedc4cc7839fc4522edf5724e954c80.tar.gz external_mesa3d-d7193ce42cedc4cc7839fc4522edf5724e954c80.tar.bz2 |
mesa: use strdup() instead of _mesa_strdup()
We were already using strdup() in various places in Mesa. Get rid
of the _mesa_strdup() wrapper. All the callers pass a non-NULL
argument so the NULL check isn't needed either.
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Diffstat (limited to 'src/mesa/main/transformfeedback.c')
-rw-r--r-- | src/mesa/main/transformfeedback.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/transformfeedback.c b/src/mesa/main/transformfeedback.c index a3e23ce..ce678c8 100644 --- a/src/mesa/main/transformfeedback.c +++ b/src/mesa/main/transformfeedback.c @@ -762,7 +762,7 @@ _mesa_TransformFeedbackVaryings(GLuint program, GLsizei count, /* Save the new names and the count */ for (i = 0; i < count; i++) { - shProg->TransformFeedback.VaryingNames[i] = _mesa_strdup(varyings[i]); + shProg->TransformFeedback.VaryingNames[i] = strdup(varyings[i]); } shProg->TransformFeedback.NumVarying = count; |