Flush executed commands on the transfer thread

This commit is contained in:
Brad Davis 2016-09-21 15:02:02 -07:00
parent 44a549317e
commit 74a3d7fcb9

View file

@ -114,8 +114,11 @@ bool GLTextureTransferHelper::process() {
pendingCommands.swap(_pendingCommands);
}
for (auto command : pendingCommands) {
command();
if (!pendingCommands.empty()) {
for (auto command : pendingCommands) {
command();
}
glFlush();
}
if (!newTransferTextures.empty()) {