This commit is contained in:
mcrcortex
2025-12-15 00:36:13 +10:00
parent a7ea5b2f99
commit 4ca9cdbaa8

View File

@@ -450,7 +450,10 @@ public class IrisVoxyRenderPipelineData {
@Override @Override
public boolean addDynamicSampler(TextureType type, IntSupplier texture, ValueUpdateNotifier notifier, Supplier<GlSampler> sampler, String... names) { public boolean addDynamicSampler(TextureType type, IntSupplier texture, ValueUpdateNotifier notifier, Supplier<GlSampler> sampler, String... names) {
if (!this.hasSampler(names)) return false; if (!this.hasSampler(names)) return false;
samplerSet.add(new TextureWSampler(this.name(names), texture, sampler!=null?()->sampler.get().getId():()->-1)); samplerSet.add(new TextureWSampler(this.name(names), texture, sampler!=null?()->{
var s = sampler.get();
return s!=null?s.getId():-1;
}:()->-1));
return true; return true;
} }