Improved shader error formatting, hide puts statements that are only useful in debug mode.

This commit is contained in:
2018-12-11 11:56:53 -06:00
parent 6341c3b817
commit 82265394eb
7 changed files with 31 additions and 13 deletions

View File

@@ -29,6 +29,8 @@ class IMICFPS
if ShaderManager.shader("lighting")
ShaderManager.shader("lighting").use do |shader|
glUniform3f(shader.variable("SunLight"), 1.0, 1.0, 1.0)
handleGlError
draw_mesh(object.model)
object.draw