diff --git a/src/SpriteBatch.cs b/src/SpriteBatch.cs index 6d82a0c..4cf983e 100644 --- a/src/SpriteBatch.cs +++ b/src/SpriteBatch.cs @@ -148,7 +148,7 @@ namespace MoonWorksComputeSpriteBatch { VertexCount = VertexCount }); - commandBuffer.DispatchCompute(VertexCount / 256, 1, 1, offset); + commandBuffer.DispatchCompute(System.Math.Max(1, VertexCount / 256), 1, 1, offset); commandBuffer.BeginRenderPass(renderPass, framebuffer, renderArea, Vector4.Zero); commandBuffer.BindGraphicsPipeline(graphicsPipeline);