diff --git a/src/mesa/main/shader_query.cpp b/src/mesa/main/shader_query.cpp index bd873a4..0ed084b 100644 --- a/src/mesa/main/shader_query.cpp +++ b/src/mesa/main/shader_query.cpp @@ -68,7 +68,7 @@ _mesa_BindAttribLocationARB(GLhandleARB program, GLuint index, * VERT_ATTRIB_GENERIC0 because that's how the linker differentiates * between built-in attributes and user-defined attributes. */ - shProg->AttributeBindings->put(index + VERT_ATTRIB_GENERIC0, name); + shProg->AttributeBindings->put(index + VERT_ATTRIB_GENERIC0, strdup(name)); /* * Note that this attribute binding won't go into effect until