Skip to content

Commit

Permalink
All or nothing?
Browse files Browse the repository at this point in the history
- Actually add PipelineCompilers into the ALL list so they get deleted
  when uber components need updating
  • Loading branch information
Jozufozu committed Oct 12, 2024
1 parent 4057742 commit efb68dc
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package dev.engine_room.flywheel.backend.compile;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

Expand Down Expand Up @@ -30,7 +31,7 @@
import net.minecraft.resources.ResourceLocation;

public final class PipelineCompiler {
private static final List<PipelineCompiler> ALL = List.of();
private static final List<PipelineCompiler> ALL = new ArrayList<>();

private static final Compile<PipelineProgramKey> PIPELINE = new Compile<>();

Expand All @@ -44,6 +45,7 @@ public final class PipelineCompiler {

public PipelineCompiler(CompilationHarness<PipelineProgramKey> harness) {
this.harness = harness;
ALL.add(this);
}

public GlProgram get(InstanceType<?> instanceType, ContextShader contextShader, Material material) {
Expand Down

0 comments on commit efb68dc

Please sign in to comment.