medfall

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 11826b723dc1c8a576c0411e2367d9e1aa51a04d
parent d00e861f68948b239f31ab2e0bd12373bad557ce
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Thu Nov  3 21:08:12 +0200

UBO -> UB

Diffstat:
renderer.cc | 2+-
renderer.h | 8++++----
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/renderer.cc b/renderer.cc @@ -171,7 +171,7 @@ Shader renderer_new_shader( ShaderConfig config ) { glLinkProgram( program ); const char * ubo_names[] = { "v_hot", "v_cold", "f_hot", "f_cold" }; - const u32 ubo_bindings[] = { UBO_VS_HOT, UBO_VS_COLD, UBO_FS_HOT, UBO_FS_COLD }; + const u32 ubo_bindings[] = { UB_VS_HOT, UB_VS_COLD, UB_FS_HOT, UB_FS_COLD }; 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 @@ -16,10 +16,10 @@ typedef u32 VAO; typedef u32 Shader; typedef u32 Texture; -const u32 UBO_VS_HOT = 0; -const u32 UBO_VS_COLD = 1; -const u32 UBO_FS_HOT = 2; -const u32 UBO_FS_COLD = 3; +const u32 UB_VS_HOT = 0; +const u32 UB_VS_COLD = 1; +const u32 UB_FS_HOT = 2; +const u32 UB_FS_COLD = 3; enum DrawCallType { DRAWCALL_NEW_VB,