We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5cdd725 commit d91d280Copy full SHA for d91d280
common/src/main/java/net/caffeinemc/mods/sodium/client/gl/arena/staging/MappedStagingBuffer.java
@@ -134,6 +134,13 @@ private static List<CopyCommand> consolidateCopies(PriorityQueue<CopyCommand> qu
134
135
@Override
136
public void delete(CommandList commandList) {
137
+ while (!this.fencedRegions.isEmpty()) {
138
+ var region = this.fencedRegions.dequeue();
139
+ var fence = region.fence();
140
+ fence.sync();
141
+ fence.delete();
142
+ }
143
+
144
this.mappedBuffer.delete(commandList);
145
this.fallbackStagingBuffer.delete(commandList);
146
this.pendingCopies.clear();
0 commit comments