Cleanup overlay shaders when done (#10432)

This commit is contained in:
metalgearsloth
2022-08-13 10:58:53 +10:00
committed by GitHub
parent 2faf84e943
commit 87c05f2949
14 changed files with 22 additions and 3 deletions

View File

@@ -60,6 +60,7 @@ public sealed class ExplosionOverlay : Overlay
}
drawHandle.SetTransform(Matrix3.Identity);
drawHandle.UseShader(null);
}
private void DrawExplosion(DrawingHandleWorld drawHandle, Box2Rotated worldBounds, Explosion exp, int index, EntityQuery<TransformComponent> xforms)
@@ -84,7 +85,7 @@ public sealed class ExplosionOverlay : Overlay
gridBounds = Matrix3.Invert(exp.SpaceMatrix).TransformBox(worldBounds);
drawHandle.SetTransform(exp.SpaceMatrix);
DrawTiles(drawHandle, gridBounds, index, exp.SpaceTiles, exp, exp.SpaceTileSize);
}