cache: do not return partially or doubly lit textures

This commit is contained in:
Max Weber
2022-04-27 09:22:20 -06:00
parent b6c2653a0e
commit 4975781bd3

View File

@@ -69,13 +69,16 @@ public class RSTextureProvider
TextureDefinition var2 = this.textures[var1];
if (var2 != null)
{
if (var2.pixels != null)
synchronized (var2)
{
if (var2.pixels != null)
{
return var2.pixels;
}
var2.method2680(this.brightness, this.width, spriteProvider);
return var2.pixels;
}
boolean var3 = var2.method2680(this.brightness, this.width, spriteProvider);
return var2.pixels;
}
return null;