mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2025-01-13 09:50:09 +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, vertexShader);
|
||||||
glAttachShader(program, fragmentShader);
|
glAttachShader(program, fragmentShader);
|
||||||
|
|
||||||
|
glBindAttribLocation(program, 0, "position");
|
||||||
|
glBindAttribLocation(program, 1, "color");
|
||||||
|
glBindFragDataLocation(program, 0, "color");
|
||||||
|
|
||||||
glLinkProgram(program);
|
glLinkProgram(program);
|
||||||
|
|
||||||
GLint status;
|
GLint status;
|
||||||
|
Loading…
Reference in New Issue
Block a user