diff --git a/libraries/gpu-gl/src/gpu/gl/GLTextureTransfer.cpp b/libraries/gpu-gl/src/gpu/gl/GLTextureTransfer.cpp index 84bf278939..dbe022df2c 100644 --- a/libraries/gpu-gl/src/gpu/gl/GLTextureTransfer.cpp +++ b/libraries/gpu-gl/src/gpu/gl/GLTextureTransfer.cpp @@ -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()) {