vk: fix func_wall surface patching
Non-worldmodel models were using incorrect surface indexes when asking for surface patches.
This commit is contained in:
parent
b894337d0e
commit
2dd4059704
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue