From 683adf1850c1859f544ee0c2e782973c9190ff06 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Mon, 26 Sep 2011 10:50:45 +0900 Subject: [PATCH] Print the name and texture number for model skins. Use SYS_GLT (1024) for gl texture debugging. --- include/QF/sys.h | 1 + libs/models/alias/gl_model_alias.c | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/include/QF/sys.h b/include/QF/sys.h index e4663c9cb..295291c66 100644 --- a/include/QF/sys.h +++ b/include/QF/sys.h @@ -87,6 +87,7 @@ void Sys_MaskPrintf (int mask, const char *fmt, ...) __attribute__((format(print #define SYS_RUA_OBJ (1|128) #define SYS_RUA_MSG (1|256) #define SYS_SND (1|512) +#define SYS_GLT (1|1024) int Sys_CheckInput (int idle, int net_socket); const char *Sys_ConsoleInput (void); diff --git a/libs/models/alias/gl_model_alias.c b/libs/models/alias/gl_model_alias.c index 482daee97..4fb8b37a0 100644 --- a/libs/models/alias/gl_model_alias.c +++ b/libs/models/alias/gl_model_alias.c @@ -102,7 +102,7 @@ Mod_FloodFillSkin (byte * skin, int skinwidth, int skinheight) } // can't fill to filled color or transparent color (used as visited marker) if ((fillcolor == filledcolor) || (fillcolor == 255)) { - Sys_MaskPrintf (SYS_DEV, "not filling skin from %d to %d\n", + Sys_MaskPrintf (SYS_GLT, "not filling skin from %d to %d\n", fillcolor, filledcolor); return; } @@ -160,6 +160,7 @@ Mod_LoadSkin (byte * skin, int skinsize, int snum, int gnum, qboolean group, } fb_texnum = Mod_Fullbright (pskin, pheader->mdl.skinwidth, pheader->mdl.skinheight, name); + Sys_MaskPrintf (SYS_GLT, "%s %d\n", name, fb_texnum); } if (group) { snprintf (name, sizeof (name), "%s_%i_%i", modname, snum, @@ -169,6 +170,7 @@ Mod_LoadSkin (byte * skin, int skinsize, int snum, int gnum, qboolean group, } texnum = GL_LoadTexture (name, pheader->mdl.skinwidth, pheader->mdl.skinheight, pskin, true, false, 1); + Sys_MaskPrintf (SYS_GLT, "%s %d\n", name, texnum); skindesc->texnum = texnum; skindesc->fb_texnum = fb_texnum; loadmodel->hasfullbrights = fb_texnum;