Commit 02b6a621 authored by Timothy Arceri's avatar Timothy Arceri

run: stop leaking SSO programs

This was causing my poor 8GB laptop to run out on memory.
Reviewed-by: Kenneth Graunke's avatarKenneth Graunke <kenneth@whitecape.org>
parent 8ba8a24d
......@@ -670,7 +670,9 @@ main(int argc, char **argv)
text[shader[i].length] = 0;
const_text = text;
glCreateShaderProgramv(shader[i].type, 1, &const_text);
GLuint prog = glCreateShaderProgramv(shader[i].type, 1,
&const_text);
glDeleteProgram(prog);
}
} else if (type == TYPE_CORE || type == TYPE_COMPAT) {
GLuint prog = glCreateProgram();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment