From 59cc44cddb95824a1ddaea88598ca1026b4ca74a Mon Sep 17 00:00:00 2001 From: cinnaboot Date: Sat, 5 Mar 2022 09:33:37 -0500 Subject: [PATCH] use utilCStrMatch to compare strings instead of strstr --- src/shader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }