mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-15 23:52:35 +00:00
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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user