mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-18 03:55:19 -04:00
Fix normal C# client always crashing without a stacktrace from recent commit, I'm a stupid idiot.
This commit is contained in:
parent
fd4e3d64af
commit
73fb950f55
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user