Actually use the provided instance

This commit is contained in:
PepperCode1 2024-01-17 10:56:34 -08:00
parent 4ad80e132e
commit a93e061013

View File

@ -72,9 +72,6 @@ public class StagingBuffer {
}
public StagingBuffer(long capacity, IndirectPrograms programs) {
scatterProgram = IndirectPrograms.get()
.getScatterProgram();
this.capacity = capacity;
vbo = GL45C.glCreateBuffers();
@ -84,6 +81,8 @@ public class StagingBuffer {
totalAvailable = capacity;
FlwMemoryTracker._allocCPUMemory(capacity);
scatterProgram = programs.getScatterProgram();
}
/**