mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2025-01-09 09:48:43 +00:00
Wait for command buffer completion before returning from renderFrame()
This commit is contained in:
parent
8959ddbeb6
commit
896456a8ac
1 changed files with 3 additions and 0 deletions
|
@ -523,6 +523,9 @@ public:
|
||||||
[commandBuffer presentDrawable:m_NextDrawable];
|
[commandBuffer presentDrawable:m_NextDrawable];
|
||||||
[commandBuffer commit];
|
[commandBuffer commit];
|
||||||
|
|
||||||
|
// Wait for the command buffer to complete and free our CVMetalTextureCache references
|
||||||
|
[commandBuffer waitUntilCompleted];
|
||||||
|
|
||||||
[m_NextDrawable release];
|
[m_NextDrawable release];
|
||||||
m_NextDrawable = nullptr;
|
m_NextDrawable = nullptr;
|
||||||
}}
|
}}
|
||||||
|
|
Loading…
Reference in a new issue