vk: fix windows build

Windows lacks strcasestr, use Q_stristr
This commit is contained in:
Ivan 'provod' Avdeev 2023-10-27 09:05:53 -04:00
parent 7eb1bedc9b
commit bf9ca596eb
1 changed files with 1 additions and 1 deletions

View File

@ -319,7 +319,7 @@ static void loadMaterialsFromFile( const char *filename, int depth ) {
for_tex_id = R_TextureFindByNameLike(value);
DEBUG("R_TextureFindByNameLike(%s)=%d", value, for_tex_id);
if (for_tex_id >= 0)
ASSERT(strcasestr(R_TextureGetNameByIndex(for_tex_id), value) != NULL);
ASSERT(Q_stristr(R_TextureGetNameByIndex(for_tex_id), value) != NULL);
g_stats.texture_lookup_duration_ns += aprof_time_now_ns() - lookup_begin_ns;
g_stats.texture_lookups++;
Q_strncpy(name, value, sizeof name);