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

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