mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2024-12-25 01:01:15 +00:00
Assign locations for attribs and frag data
This commit is contained in:
parent
f25e89b745
commit
5632721a4b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user