slight logic error in flushing

This commit is contained in:
mcrcortex
2025-07-20 18:23:04 +10:00
parent 4d59d05ad6
commit bdcdae791e

View File

@@ -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) {