vk: materials: fix bsp/mat file extension culling

This commit is contained in:
Ivan Avdeev 2023-09-29 12:39:36 -04:00
parent b07c5c3740
commit 7839792964
1 changed files with 1 additions and 1 deletions

View File

@ -268,7 +268,7 @@ void R_VkMaterialsReload( void ) {
{
const model_t *map = gEngine.pfnGetModelByIndex( 1 );
const char *filename = COM_FileWithoutPath(map->name);
const int no_ext_len = findFilenameExtension(map->name, -1);
const int no_ext_len = findFilenameExtension(filename, -1);
loadMaterialsFromFileF("pbr/%s/%.*s.mat", map->name, no_ext_len, filename);
}