mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-13 21:27:21 +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