From d58d1e21d0f873b9791a6b371fa1dce9f24aeb3d Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 15 Jul 2018 00:28:16 +0200 Subject: [PATCH] - 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. --- src/gl/textures/gl_hwtexture.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/gl/textures/gl_hwtexture.cpp b/src/gl/textures/gl_hwtexture.cpp index 2f68baaf5..e035734f9 100644 --- a/src/gl/textures/gl_hwtexture.cpp +++ b/src/gl/textures/gl_hwtexture.cpp @@ -531,12 +531,6 @@ bool FHardwareTexture::BindOrCreate(FTexture *tex, int texunit, int clampmode, i bool needmipmap = (clampmode <= CLAMP_XY); - // Texture has become invalid - if (!tex->bHasCanvas && !tex->bWarped && tex->CheckModified(DefaultRenderStyle())) - { - Clean(true); - } - // Bind it to the system. if (!Bind(texunit, translation, needmipmap)) {