commit 63f14949f9a472c0c412d2187a91151dd2c674ba parent 1e3584c57fafb850c2cd9dc2219c0577394e9a64 Author: Michael Savage <mikejsavage@gmail.com> Date: Sat, 3 Aug 2019 15:12:21 +0300 There should always be shaders loaded Diffstat:
M | shaders.cc | | | 4 | +--- |
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/shaders.cc b/shaders.cc @@ -82,9 +82,7 @@ const Shader * get_shader( ShaderID id ) { void shaders_term() { for( HotloadShader & shader : shaders ) { - if( shader.shader.program != 0 ) { - renderer_delete_shader( shader.shader ); - } + renderer_delete_shader( shader.shader ); } }