medfall

A super great game engine
Log | Files | Refs

commit a59aa57744b04c140991810250b4b3e6a0dac11d
parent 13f2c992145035e505fb93e9bf1f5d974bfe4b74
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Sun May 14 16:36:56 +0300

Small shader cleanup

Diffstat:
shaders.cc | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/shaders.cc b/shaders.cc @@ -44,7 +44,9 @@ void shaders_init() { shaders[ SHADER_TERRAIN ].texture_buffer_uniform_names[ 1 ] = "point_light_colours"; int failed = hotload_shaders(); - if( failed != 0 ) FATAL( "failed to load shaders" ); + if( failed != 0 ) { + FATAL( "failed to load shaders" ); + } } Shader get_shader( ShaderID id ) { @@ -62,8 +64,6 @@ void shaders_term() { int hotload_shaders() { int failed = 0; for( HotloadShader & shader : shaders ) { - if( shader.path == NULL ) continue; - time_t t = file_last_write_time( shader.path ); if( t > shader.last_modified ) { INFO( "loading {}", shader.path );