v0.9.4: fixed rare texture errors in fog of war

This commit is contained in:
Evan Debenham
2021-08-13 22:46:11 -04:00
parent a5e50a7d68
commit b08f3479c1
2 changed files with 8 additions and 7 deletions

View File

@@ -112,6 +112,11 @@ public class FogOfWar extends Image {
String key = "FogOfWar" + width2 + "x" + height2;
texture(TextureCache.create(key, width2, height2));
//sets contents to all black
texture.bitmap.setColor( 0x000000FF );
texture.bitmap.fill();
texture.bind();
scale.set( size, size );