mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-01-05 09:30:59 +00:00
- removed the texture invalidation check from FHardwareTexture.
This is not needed anymore because only warp and camera textures still implement CheckModified and both are excluded here.
This commit is contained in:
parent
7bda29387d
commit
d58d1e21d0
1 changed files with 0 additions and 6 deletions
|
@ -531,12 +531,6 @@ bool FHardwareTexture::BindOrCreate(FTexture *tex, int texunit, int clampmode, i
|
||||||
|
|
||||||
bool needmipmap = (clampmode <= CLAMP_XY);
|
bool needmipmap = (clampmode <= CLAMP_XY);
|
||||||
|
|
||||||
// Texture has become invalid
|
|
||||||
if (!tex->bHasCanvas && !tex->bWarped && tex->CheckModified(DefaultRenderStyle()))
|
|
||||||
{
|
|
||||||
Clean(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Bind it to the system.
|
// Bind it to the system.
|
||||||
if (!Bind(texunit, translation, needmipmap))
|
if (!Bind(texunit, translation, needmipmap))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue