mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-17 06:01:12 +00:00
Wait for command buffer completion before returning from renderFrame()
This commit is contained in:
@@ -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;
|
||||||
}}
|
}}
|
||||||
|
|||||||
Reference in New Issue
Block a user