mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2024-11-10 12:34:11 +01: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) {
|
public StagingBuffer(long capacity, IndirectPrograms programs) {
|
||||||
scatterProgram = IndirectPrograms.get()
|
|
||||||
.getScatterProgram();
|
|
||||||
|
|
||||||
this.capacity = capacity;
|
this.capacity = capacity;
|
||||||
vbo = GL45C.glCreateBuffers();
|
vbo = GL45C.glCreateBuffers();
|
||||||
|
|
||||||
@ -84,6 +81,8 @@ public class StagingBuffer {
|
|||||||
totalAvailable = capacity;
|
totalAvailable = capacity;
|
||||||
|
|
||||||
FlwMemoryTracker._allocCPUMemory(capacity);
|
FlwMemoryTracker._allocCPUMemory(capacity);
|
||||||
|
|
||||||
|
scatterProgram = programs.getScatterProgram();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user