Use explicit generic attribute indices;

This commit is contained in:
bjorn 2016-10-07 18:28:09 -07:00
parent a6df0c58c7
commit aa5e9943ef
1 changed files with 3 additions and 0 deletions

View File

@ -58,6 +58,9 @@ GLuint linkShaders(GLuint vertexShader, GLuint fragmentShader) {
glAttachShader(shader, fragmentShader);
}
glBindAttribLocation(shader, 0, "position");
glBindAttribLocation(shader, 1, "normal");
glLinkProgram(shader);
int isShaderLinked;