Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ThatMG393 committed Aug 4, 2024
1 parent 607af80 commit 044b9e2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public void createBuffer(long size, int usage, int memoryFlags, LongBuffer buffe

ResultChecker.checkResult(
vmaCreateBuffer(
GPUManager.getInstance().getSelectedGPU().getVMA(),
GPUManager.getInstance().getSelectedGPU().getVmaPtr(),
vbci, vaci, bufferPtr, memoryAllocPtr, null
),
"Failed to create buffer"
Expand All @@ -57,6 +57,6 @@ public void createBuffer(BaseBuffer buffer, int size, int memoryFlags) {
}

public void mapBuffer(long allocation, PointerBuffer data) {
vmaMapMemory(GPUManager.getInstance().getSelectedGPU().getVMA(), allocation, data);
vmaMapMemory(GPUManager.getInstance().getSelectedGPU().getVmaPtr(), allocation, data);
}
}

0 comments on commit 044b9e2

Please sign in to comment.