mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-16 08:02:36 +00:00
Improved shader error formatting, hide puts statements that are only useful in debug mode.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user