Update GL.java

This commit is contained in:
Duy Tran Khanh
2021-11-08 12:42:40 +07:00
committed by GitHub
parent b70b03deb8
commit 8a940f4cb3

View File

@@ -361,7 +361,7 @@ public final class GL {
callJPI(GLFW.glfwGetCurrentContext(),getGraphicsBufferAddr(),GL_UNSIGNED_BYTE,dims[0],dims[1],functionProvider.getFunctionAddress("OSMesaMakeCurrent"));
} else if (System.getenv("POJAV_RENDERER").startsWith("opengles")) {
// This fixed framebuffer issue on 1.13+ 64-bit by another making current
GLFW.nativeEglMakeCurrent(GLFW.mainContext);
GLFW.glfwMakeCurrentContext(GLFW.mainContext);
if (isUsingRegal) {
nativeRegalMakeCurrent();
}