mirror of https://github.com/bjornbytes/lovr.git
Use explicit generic attribute indices;
This commit is contained in:
parent
a6df0c58c7
commit
aa5e9943ef
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue