vk: fix func_wall surface patching

Non-worldmodel models were using incorrect surface indexes when asking
for surface patches.
This commit is contained in:
Ivan Avdeev 2023-04-14 10:08:36 -07:00
parent b894337d0e
commit 2dd4059704
1 changed files with 1 additions and 1 deletions

View File

@ -538,7 +538,7 @@ static qboolean loadBrushSurfaces( model_sizes_t sizes, const model_t *mod ) {
int index_count = 0;
vec3_t tangent;
int tex_id = surf->texinfo->texture->gl_texturenum;
const xvk_patch_surface_t *const psurf = R_VkPatchGetSurface(i);
const xvk_patch_surface_t *const psurf = R_VkPatchGetSurface(surface_index);
if (!renderableSurface(surf, surface_index))
continue;