Fix normal C# client always crashing without a stacktrace from recent commit, I'm a stupid idiot.

This commit is contained in:
UnknownShadow200 2017-05-25 15:36:35 +10:00
parent fd4e3d64af
commit 73fb950f55

View File

@ -148,7 +148,7 @@ namespace ClassicalSharp.Renderers {
for (int batch = 0; batch < _1DUsed; batch++) { for (int batch = 0; batch < _1DUsed; batch++) {
if (totalUsed[batch] <= 0) continue; if (totalUsed[batch] <= 0) continue;
if (pendingTranslucent[batch] || usedTranslucent[batch]) { if (pendingTranslucent[batch] || usedTranslucent[batch]) {
RenderTranslucent(batch); RenderTranslucentBatch(batch);
pendingTranslucent[batch] = false; pendingTranslucent[batch] = false;
} }
} }
@ -302,6 +302,7 @@ namespace ClassicalSharp.Renderers {
ChunkPartInfo part = info.TranslucentParts[batch]; ChunkPartInfo part = info.TranslucentParts[batch];
if (part.IndicesCount == 0) continue; if (part.IndicesCount == 0) continue;
usedTranslucent[batch] = true;
gfx.BindVb(part.VbId); gfx.BindVb(part.VbId);
bool drawLeft = (inTranslucent || info.DrawLeft) && part.LeftCount > 0; bool drawLeft = (inTranslucent || info.DrawLeft) && part.LeftCount > 0;