Build 0.21.6.0

This commit is contained in:
Markus Isberg
2023-01-31 18:01:29 +02:00
parent 697ec52120
commit 25fa5a9552
145 changed files with 2317 additions and 1145 deletions
@@ -0,0 +1,12 @@
using Microsoft.Xna.Framework.Graphics;
namespace Barotrauma;
static class EffectLoader
{
public static Effect Load(string path)
=> GameMain.Instance.Content.Load<Effect>(path
#if LINUX || OSX
+"_opengl"
#endif
);
}
@@ -9,7 +9,7 @@ namespace Barotrauma
{
sealed class SpriteRecorder : ISpriteBatch, IDisposable
{
private readonly record struct Command(
public readonly record struct Command(
Texture2D Texture,
VertexPositionColorTexture VertexBL,
VertexPositionColorTexture VertexBR,
@@ -346,7 +346,7 @@ namespace Barotrauma
}
recordedBuffers.Clear();
commandList.Clear();
indexBuffer.Dispose(); indexBuffer = null;
indexBuffer?.Dispose(); indexBuffer = null;
ReadyToRender = false;
}
}