mirror of
https://github.com/leozide/leocad
synced 2024-11-17 07:47:55 +01:00
Fixed vertex attribute bindings for the conditional shader.
This commit is contained in:
parent
03425aa06c
commit
5065dcac74
1 changed files with 5 additions and 0 deletions
|
@ -239,6 +239,11 @@ void lcContext::CreateShaderPrograms()
|
|||
glBindAttribLocation(Program, LC_ATTRIB_TEXCOORD, "VertexTexCoord");
|
||||
glBindAttribLocation(Program, LC_ATTRIB_COLOR, "VertexColor");
|
||||
|
||||
glBindAttribLocation(Program, 0, "VertexPosition1");
|
||||
glBindAttribLocation(Program, 1, "VertexPosition2");
|
||||
glBindAttribLocation(Program, 2, "VertexPosition3");
|
||||
glBindAttribLocation(Program, 3, "VertexPosition4");
|
||||
|
||||
glLinkProgram(Program);
|
||||
|
||||
glDetachShader(Program, VertexShader);
|
||||
|
|
Loading…
Reference in a new issue