diff --git a/src/main/java/me/cortex/voxy/client/core/rendering/util/UploadStream.java b/src/main/java/me/cortex/voxy/client/core/rendering/util/UploadStream.java index d3f24fdc..032f725f 100644 --- a/src/main/java/me/cortex/voxy/client/core/rendering/util/UploadStream.java +++ b/src/main/java/me/cortex/voxy/client/core/rendering/util/UploadStream.java @@ -105,14 +105,15 @@ public class UploadStream { } public void commit() { - if (this.uploadList.isEmpty()) { - return; - } if ((!USE_COHERENT)&&this.caddr != -1) { //Flush this allocation glFlushMappedNamedBufferRange(this.uploadBuffer.id, this.caddr, this.offset); } + if (this.uploadList.isEmpty()) { + return; + } + glMemoryBarrier(GL_BUFFER_UPDATE_BARRIER_BIT); //Execute all the copies for (var entry : this.uploadList) {