Fixed reloading shader which failed to compile at start up but succeeded at runtime caused crash due to Model expecting access to attribute location of shader inputs

This commit is contained in:
2020-03-24 10:32:32 -05:00
parent 578c00673d
commit d839811cfd
3 changed files with 20 additions and 12 deletions

View File

@@ -24,6 +24,8 @@ class IMICFPS
shader.uniform_vec3("lights[#{i}].diffuse", light.diffuse)
shader.uniform_vec3("lights[#{i}].specular", light.specular)
end
gl_error?
shader.uniform_integer("totalLights", lights.size)