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

@@ -20,7 +20,7 @@ class IMICFPS
def available_light
raise "Using to many lights, #{LightManager.light_count}/#{LightManager::MAX_LIGHTS}" if LightManager.light_count > LightManager::MAX_LIGHTS
puts "OpenGL::GL_LIGHT#{LightManager.light_count}"
puts "OpenGL::GL_LIGHT#{LightManager.light_count}" if $debug
@light_id = Object.const_get "OpenGL::GL_LIGHT#{LightManager.light_count}"
end