Fix compilation errors in latest texture-related changes
GCC and Clang complain about non-POD type passed to variadic function.
This commit is contained in:
parent
d925279bef
commit
a26fbc74f0
6 changed files with 13 additions and 13 deletions
|
|
@ -294,7 +294,7 @@ void FTexture::CreateDefaultBrightmap()
|
|||
if (GlobalBrightmap.Remap[texbuf[i]] == white)
|
||||
{
|
||||
// Create a brightmap
|
||||
DPrintf("brightmap created for texture '%s'\n", Name);
|
||||
DPrintf("brightmap created for texture '%s'\n", Name.GetChars());
|
||||
gl_info.Brightmap = new FBrightmapTexture(this);
|
||||
gl_info.bBrightmapChecked = 1;
|
||||
TexMan.AddTexture(gl_info.Brightmap);
|
||||
|
|
@ -302,7 +302,7 @@ void FTexture::CreateDefaultBrightmap()
|
|||
}
|
||||
}
|
||||
// No bright pixels found
|
||||
DPrintf("No bright pixels found in texture '%s'\n", Name);
|
||||
DPrintf("No bright pixels found in texture '%s'\n", Name.GetChars());
|
||||
gl_info.bBrightmapChecked = 1;
|
||||
}
|
||||
else
|
||||
|
|
@ -735,13 +735,13 @@ void gl_ParseBrightmap(FScanner &sc, int deflump)
|
|||
|
||||
if (bmtex != NULL)
|
||||
{
|
||||
Printf("Multiple brightmap definitions in texture %s\n", tex? tex->Name : "(null)");
|
||||
Printf("Multiple brightmap definitions in texture %s\n", tex? tex->Name.GetChars() : "(null)");
|
||||
}
|
||||
|
||||
bmtex = TexMan.FindTexture(sc.String, FTexture::TEX_Any, FTextureManager::TEXMAN_TryAny);
|
||||
|
||||
if (bmtex == NULL)
|
||||
Printf("Brightmap '%s' not found in texture '%s'\n", sc.String, tex? tex->Name : "(null)");
|
||||
Printf("Brightmap '%s' not found in texture '%s'\n", sc.String, tex? tex->Name.GetChars() : "(null)");
|
||||
}
|
||||
}
|
||||
if (!tex)
|
||||
|
|
@ -765,7 +765,7 @@ void gl_ParseBrightmap(FScanner &sc, int deflump)
|
|||
{
|
||||
if (tex->bWarped != 0)
|
||||
{
|
||||
Printf("Cannot combine warping with brightmap on texture '%s'\n", tex->Name);
|
||||
Printf("Cannot combine warping with brightmap on texture '%s'\n", tex->Name.GetChars());
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue