Fix flashing on MC 1.21.5 in non-overworld dimensions
This commit is contained in:
@@ -359,6 +359,7 @@ public class RenderBufferHandler implements AutoCloseable
|
||||
// debug wireframe setup //
|
||||
//=======================//
|
||||
|
||||
// TODO move this logic into LodRenderer so all the GL states can be handled there
|
||||
boolean renderWireframe = Config.Client.Advanced.Debugging.renderWireframe.get();
|
||||
if (renderWireframe)
|
||||
{
|
||||
|
||||
@@ -571,6 +571,10 @@ public class LodRenderer
|
||||
GLMC.glDepthFunc(GL32.GL_LESS);
|
||||
GLMC.enableDepthMask();
|
||||
|
||||
// This is required for MC versions 1.21.5+
|
||||
// due to MC updating the lightmap by changing the viewport size
|
||||
GL32.glViewport(0, 0, this.cachedWidth, this.cachedHeight);
|
||||
|
||||
/*---------Bind required objects--------*/
|
||||
// Setup LodRenderProgram and the LightmapTexture if it has not yet been done
|
||||
// also binds LightmapTexture, VAO, and ShaderProgram
|
||||
|
||||
Reference in New Issue
Block a user