Fix some CMEs and black screens seen during boot/splash. Should be minimal overhead after splash. (#1959)

This commit is contained in:
Jason Mitchell authored and GitHub committed 2026-07-23 19:33:01 -07:00
1 parent d1c6677caf
commit 4910cfd6d3
9 files changed
+324 -109

No files matched your search

@@ -327,6 +327,15 @@ public class BatchingFontRenderer {
private int fontAAStrengthLast = -1;
private void flushBatch() {
final boolean locked = GLStateManager.acquireDrawLock();
try {
flushBatchInner();
} finally {
if (locked) GLStateManager.releaseDrawLock();
}
}
private void flushBatchInner() {
if (vertexDataPos == 0) {
clearBatch();
return;