From 6f074f1e23250a99d7af8ca10ef2822d50297142 Mon Sep 17 00:00:00 2001 From: embeddedt <42941056+embeddedt@users.noreply.github.com> Date: Thu, 9 Nov 2023 15:01:46 -0500 Subject: [PATCH] Don't turn off VSync when rendering from Minecraft context --- .../main/java/net/neoforged/fml/earlydisplay/DisplayWindow.java | 1 - 1 file changed, 1 deletion(-) diff --git a/earlydisplay/src/main/java/net/neoforged/fml/earlydisplay/DisplayWindow.java b/earlydisplay/src/main/java/net/neoforged/fml/earlydisplay/DisplayWindow.java index 85884c70f..e59b3e524 100644 --- a/earlydisplay/src/main/java/net/neoforged/fml/earlydisplay/DisplayWindow.java +++ b/earlydisplay/src/main/java/net/neoforged/fml/earlydisplay/DisplayWindow.java @@ -265,7 +265,6 @@ void paintFramebuffer() { public void render(int alpha) { var currentVAO = glGetInteger(GL_VERTEX_ARRAY_BINDING); var currentFB = glGetInteger(GL_READ_FRAMEBUFFER_BINDING); - glfwSwapInterval(0); glViewport(0, 0, this.context.scaledWidth(), this.context.scaledHeight()); RenderElement.globalAlpha = alpha; framebuffer.activate();