|
|
|
|
@ -105,6 +105,7 @@ addShaderProgram(memory_arena* arena,
|
|
|
|
|
shader_program* |
|
|
|
|
getShaderByName(const char* name, GLContext* gl_ctx) |
|
|
|
|
{ |
|
|
|
|
// FIXME: no reason to use hashes here. should use std::strncmp instead
|
|
|
|
|
u64 hash = utilFNV64a_str(name); |
|
|
|
|
|
|
|
|
|
for (u32 i = 0; i < gl_ctx->num_shaders; i++) { |
|
|
|
|
|