From c575cb6cfd2bb58c081f03e09e31d12b357b37f1 Mon Sep 17 00:00:00 2001 From: Ivan Avdeev Date: Tue, 7 Nov 2023 13:45:06 -0500 Subject: [PATCH] vk: add alternate_anim display to infotool --- ref/vk/infotool.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ref/vk/infotool.c b/ref/vk/infotool.c index 9ffd3b67..fc4bfc46 100644 --- a/ref/vk/infotool.c +++ b/ref/vk/infotool.c @@ -70,9 +70,13 @@ void XVK_CameraDebugPrintCenterEntity( void ) { const char *const tex_name = R_TextureGetNameByIndex( tex_id ); const texture_t *tex = surf->texinfo->texture; + const texture_t* const alt = tex->alternate_anims; + p += Q_snprintf(p, end - p, - "surface index: [[ %d ]];\ntexture: %s(%d)\n", - surface_index, tex_name ? tex_name : "NONE", tex_id + "surface index: [[ %d ]];\ntexture: %s(%d)\n" + "alternate_texture: %s(%d)\n", + surface_index, tex_name ? tex_name : "NONE", tex_id, + alt ? alt->name : "N/A", alt ? alt->gl_texturenum : -1 ); if (tex->anim_total > 0 && tex->anim_next) {