mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 14:03:55 +02:00
Flush executed commands on the transfer thread
This commit is contained in:
parent
44a549317e
commit
74a3d7fcb9
1 changed files with 5 additions and 2 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Reference in a new issue