- texture manager update from Raze
* new texture format: ANM - this reads the first frame of a Build-ANM movie as a texture. * some preparations for indexed (paletted) rendering. * optimization of the patch texture checker - do not read in the entire file if checking the initial header is sufficient for rejecting it.
This commit is contained in:
parent
96ceb11af0
commit
528e4e46b3
15 changed files with 712 additions and 59 deletions
|
|
@ -528,17 +528,15 @@ outl:
|
|||
|
||||
IHardwareTexture* FTexture::GetHardwareTexture(int translation, int scaleflags)
|
||||
{
|
||||
//if (UseType != ETextureType::Null)
|
||||
int indexed = scaleflags & CTF_Indexed;
|
||||
if (indexed) translation = -1;
|
||||
IHardwareTexture* hwtex = SystemTextures.GetHardwareTexture(translation, scaleflags);
|
||||
if (hwtex == nullptr)
|
||||
{
|
||||
IHardwareTexture* hwtex = SystemTextures.GetHardwareTexture(translation, scaleflags);
|
||||
if (hwtex == nullptr)
|
||||
{
|
||||
hwtex = screen->CreateHardwareTexture(4);
|
||||
SystemTextures.AddHardwareTexture(translation, scaleflags, hwtex);
|
||||
hwtex = screen->CreateHardwareTexture(indexed? 1 : 4);
|
||||
SystemTextures.AddHardwareTexture(translation, scaleflags, hwtex);
|
||||
}
|
||||
return hwtex;
|
||||
}
|
||||
return nullptr;
|
||||
return hwtex;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue