fixed bugs, memory leaks, etc

This commit is contained in:
bbldrizzy committed 2026-10-23 08:36:42 +01:00
1 parent aa4f6b6ddc
commit c3f8f23c1d
124 files changed
+1060 -420

No files matched your search

@@ -49,17 +49,19 @@ public class DrawPipeline {
}
GlRenderPass pass = passBuilder.build();
pass.begin();
pass.uploadMatrices(context);
try {
pass.begin();
pass.uploadMatrices(context);
for (RenderStateElement applyState : this.states) {
applyState.apply(pass);
}
for (RenderStateElement applyState : this.states) {
applyState.apply(pass);
}
pass.drawIndexed(vertexArray, indexBuffer, this.primitiveMode, drawInfo.indexCount());
for (RenderStateElement cleanupState : this.states) {
cleanupState.cleanup();
pass.drawIndexed(vertexArray, indexBuffer, this.primitiveMode, drawInfo.indexCount());
} finally {
for (RenderStateElement cleanupState : this.states) {
cleanupState.cleanup();
}
}
}
}