medfall

A super great game engine
Log | Files | Refs

commit 35dee0c11ef64f060d2d1ac953cd352b026c2681
parent 8a7f4635db536200c4533812dd4dcb1ec945805b
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Sat May 20 14:41:03 +0300

Remove UB_FS_COLD

Diffstat:
renderer.cc | 2+-
renderer.h | 7+++----
2 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/renderer.cc b/renderer.cc @@ -306,7 +306,7 @@ Shader renderer_new_shader( ShaderConfig config ) { return INVALID_SHADER; } - const char * ubo_names[] = { "v_cold", "f_hot", "f_cold", "view", "model", "light_view" }; + const char * ubo_names[] = { "v_cold", "f_hot", "view", "model", "light_view" }; for( size_t i = 0; i < ARRAY_COUNT( ubo_names ); i++ ) { GLuint idx = glGetUniformBlockIndex( program, ubo_names[ i ] ); if( idx != GL_INVALID_INDEX ) { diff --git a/renderer.h b/renderer.h @@ -18,10 +18,9 @@ typedef u32 FramebufferObject; const u32 UB_VS_COLD = 0; const u32 UB_FS_HOT = 1; -const u32 UB_FS_COLD = 2; -const u32 UB_VIEW = 3; -const u32 UB_MODEL = 4; -const u32 UB_LIGHT_VIEW = 5; +const u32 UB_VIEW = 2; +const u32 UB_MODEL = 3; +const u32 UB_LIGHT_VIEW = 4; #define RENDERER_MAX_TEXTURES 4 #define RENDERER_MAX_TEXTURE_BUFFERS 4