mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 17:24:24 +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);
|
pendingCommands.swap(_pendingCommands);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (auto command : pendingCommands) {
|
if (!pendingCommands.empty()) {
|
||||||
command();
|
for (auto command : pendingCommands) {
|
||||||
|
command();
|
||||||
|
}
|
||||||
|
glFlush();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!newTransferTextures.empty()) {
|
if (!newTransferTextures.empty()) {
|
||||||
|
|
Loading…
Reference in a new issue