mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-31 05:00:35 +00:00
Print the name and texture number for model skins.
Use SYS_GLT (1024) for gl texture debugging.
This commit is contained in:
parent
521f482806
commit
683adf1850
2 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue