diff --git a/src/shader.cpp b/src/shader.cpp index dbfabfc..0f94a05 100644 --- a/src/shader.cpp +++ b/src/shader.cpp @@ -627,11 +627,11 @@ ctxGetUniformBlockBinding(GLContext* gl_ctx, const char* name) for (u32 i = 0; i < gl_ctx->num_ubos; i++) { GLBuffer& ubo = gl_ctx->uniform_buffers[i]; - if (std::strstr(ubo.name, name)) + if (utilCStrMatch(ubo.name, name)) return ubo.binding_idx; } - LOGF(Error, "no buffer found with name: %s\n", name); + LOGF(Error, "no buffer found with name: '%s'\n", name); return -1; }