Entity Shadow Replay (#2294)

This commit is contained in:
Eclipse-Sol authored and GitHub committed 2026-10-24 16:21:33 -07:00
1 parent 102c6cad86
commit 713509a87b
39 files changed
+3750 -157

No files matched your search

@@ -42,12 +42,17 @@ public final class Program extends GlResource {
}
public void use() {
RenderSystem.memoryBarrier(GL42.GL_SHADER_IMAGE_ACCESS_BARRIER_BIT | GL42.GL_TEXTURE_FETCH_BARRIER_BIT | GL43.GL_SHADER_STORAGE_BARRIER_BIT);
bindManaged(getGlId());
final boolean suspended = GLStateManager.suspendExitCapture();
try {
RenderSystem.memoryBarrier(GL42.GL_SHADER_IMAGE_ACCESS_BARRIER_BIT | GL42.GL_TEXTURE_FETCH_BARRIER_BIT | GL43.GL_SHADER_STORAGE_BARRIER_BIT);
bindManaged(getGlId());
uniforms.update();
samplers.update();
images.update();
uniforms.update();
samplers.update();
images.update();
} finally {
GLStateManager.resumeExitCapture(suspended);
}
}
static void bindManaged(int program) {
@@ -61,9 +66,14 @@ public final class Program extends GlResource {
}
public static void unbind() {
ProgramUniforms.clearActiveUniforms();
ProgramSamplers.clearActiveSamplers();
GLStateManager.glUseProgram(0);
final boolean suspended = GLStateManager.suspendExitCapture();
try {
ProgramUniforms.clearActiveUniforms();
ProgramSamplers.clearActiveSamplers();
GLStateManager.glUseProgram(0);
} finally {
GLStateManager.resumeExitCapture(suspended);
}
}
@Override