mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2025-01-04 03:16:24 +01:00
Actually use the provided instance
This commit is contained in:
parent
4ad80e132e
commit
a93e061013
1 changed files with 2 additions and 3 deletions
|
@ -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 a new issue