Revert "Merge pull request #25 from jpirnay/fix-pr1582" and refactor koreader

This commit is contained in:
jpirnay committed 2026-04-07 20:24:51 +02:00
1 parent fb331ae122
commit abbf69649e
17 files changed
+516 -268

No files matched your search

+5
View File
@@ -1917,7 +1917,12 @@ void GfxRenderer::restoreBwBuffer() {
}
if (missingChunks) {
// Store failed part-way (or was skipped), so we cannot restore BW bytes safely.
// Still cleanup grayscale staging buffers to avoid retaining large temporary
// allocations that can later starve TLS handshakes.
display.cleanupGrayscaleBuffers(frameBuffer);
freeBwBufferChunks();
LOG_ERR("GFX", "BW restore skipped due to missing chunks; cleaned grayscale buffers only");
return;
}