Adaptive raster culling #41

Merged
embeddedt merged 9 commits from adaptive-raster-culling into stonecutter 2026-09-17 10:10:54 -04:00
Showing only changes of commit 1f9a13729a - Show all commits
@@ -9,9 +9,11 @@ import org.lwjgl.egl.EGL15;
import org.lwjgl.egl.EGLCapabilities;
import org.lwjgl.opengl.GL;
import org.lwjgl.opengl.GL11C;
import org.lwjgl.system.Configuration;
import org.lwjgl.system.JNI;
import org.lwjgl.system.MemoryStack;
import java.nio.ByteBuffer;
import java.nio.IntBuffer;
/**
@@ -36,6 +38,8 @@ public final class HeadlessGl {
return;
}
Configuration.OPENGL_EXPLICIT_INIT.set(true);
long display = openDisplay();
try (MemoryStack stack = MemoryStack.stackPush()) {
@@ -65,6 +69,7 @@ public final class HeadlessGl {
}
}
GL.create((ByteBuffer name) -> EGL10.eglGetProcAddress(name));
GL.createCapabilities();
// GLRenderDevice requires this; the benchmarks never touch vanilla GL state.