Assign locations for attribs and frag data

This commit is contained in:
David G Yu 2013-05-22 12:36:21 -07:00
parent f25e89b745
commit 5632721a4b

View File

@ -587,6 +587,10 @@ linkDefaultProgram()
glAttachShader(program, vertexShader);
glAttachShader(program, fragmentShader);
glBindAttribLocation(program, 0, "position");
glBindAttribLocation(program, 1, "color");
glBindFragDataLocation(program, 0, "color");
glLinkProgram(program);
GLint status;