now recreate buffers when you reenable rendering. Doing it using debug keys can sometimes lead to crash tho

This commit is contained in:
cola98765
2021-10-30 13:36:00 +02:00
parent 717e189107
commit 8e727011de
@@ -199,6 +199,9 @@ public class LodRenderer
// (this is to prevent thread conflicts)
if (LodConfig.CLIENT.advancedModOptions.debugging.drawLods.get())
{
if (lodBufferBuilder.buildableBuffers == null)
lodBufferBuilder.setupBuffers(lodDim);
if ((partialRegen || fullRegen) && !lodBufferBuilder.generatingBuffers && !lodBufferBuilder.newBuffersAvailable())
{
// generate the LODs on a separate thread to prevent stuttering or freezing