slight logic error in flushing
This commit is contained in:
@@ -105,14 +105,15 @@ public class UploadStream {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void commit() {
|
public void commit() {
|
||||||
if (this.uploadList.isEmpty()) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if ((!USE_COHERENT)&&this.caddr != -1) {
|
if ((!USE_COHERENT)&&this.caddr != -1) {
|
||||||
//Flush this allocation
|
//Flush this allocation
|
||||||
glFlushMappedNamedBufferRange(this.uploadBuffer.id, this.caddr, this.offset);
|
glFlushMappedNamedBufferRange(this.uploadBuffer.id, this.caddr, this.offset);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.uploadList.isEmpty()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
glMemoryBarrier(GL_BUFFER_UPDATE_BARRIER_BIT);
|
glMemoryBarrier(GL_BUFFER_UPDATE_BARRIER_BIT);
|
||||||
//Execute all the copies
|
//Execute all the copies
|
||||||
for (var entry : this.uploadList) {
|
for (var entry : this.uploadList) {
|
||||||
|
|||||||
Reference in New Issue
Block a user