mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2024-09-20 12:42:04 +02:00
Actually use the provided instance
This commit is contained in:
parent
4ad80e132e
commit
a93e061013
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user