Commit b61175f7 authored by Matt Turner's avatar Matt Turner

run.c: Pass appropriate program type to glBindProgramARB.

parent 187c89a0
......@@ -618,7 +618,7 @@ main(int argc, char **argv)
for (unsigned i = 0; i < num_shaders; i++) {
GLuint prog;
glGenProgramsARB(1, &prog);
glBindProgramARB(shader[i].type, prog);
glProgramStringARB(shader[i].type, GL_PROGRAM_FORMAT_ASCII_ARB,
shader[i].length, shader[i].text);
glDeleteProgramsARB(1, &prog);
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