Explicitly set generic int attribute for WebGL;

This commit is contained in:
bjorn 2019-02-14 10:11:10 -08:00
parent 1d3b05a515
commit 241abb5b2b
1 changed files with 1 additions and 0 deletions

View File

@ -1879,6 +1879,7 @@ Shader* lovrShaderInitGraphics(Shader* shader, const char* vertexSource, const c
glVertexAttrib4fv(LOVR_SHADER_VERTEX_COLOR, (float[4]) { 1., 1., 1., 1. });
glVertexAttribI4uiv(LOVR_SHADER_BONES, (uint32_t[4]) { 0., 0., 0., 0. });
glVertexAttrib4fv(LOVR_SHADER_BONE_WEIGHTS, (float[4]) { 1., 0., 0., 0. });
glVertexAttribI4ui(LOVR_SHADER_DRAW_ID, 0, 0, 0, 0);
lovrShaderSetupUniforms(shader);