- fixed texture layer management so that each material layer can decide for itself if it wants to allow upscaling.
- rewrote the hardware texture precacher to use the new texture management to properly track the data to delete.
This commit is contained in:
parent
cedc95c2a5
commit
b2281c38e1
20 changed files with 190 additions and 135 deletions
|
|
@ -62,17 +62,6 @@ void PolyHardwareTexture::Reset()
|
|||
}
|
||||
}
|
||||
|
||||
DCanvas *PolyHardwareTexture::GetImage(FTexture *baselayer, const FMaterialState &state)
|
||||
{
|
||||
if (!mCanvas)
|
||||
{
|
||||
int flags = state.mMaterial->GetScaleFlags();
|
||||
return GetImage(baselayer, state.mTranslation, flags);
|
||||
}
|
||||
|
||||
return mCanvas.get();
|
||||
}
|
||||
|
||||
DCanvas *PolyHardwareTexture::GetImage(FTexture *tex, int translation, int flags)
|
||||
{
|
||||
if (!mCanvas)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue