Mac: Wait for metal command buffer to finish before presenting drawable, properly this time

This commit is contained in:
Michael Buckley 2022-10-30 20:58:11 -07:00
parent 2956be7559
commit 55d50c7fbd
1 changed files with 5 additions and 3 deletions

View File

@ -368,11 +368,13 @@ static void S9xPutImageMetal (int width, int height, uint16 *buffer16)
[renderEncoder drawPrimitives:MTLPrimitiveTypeTriangle vertexStart:0 vertexCount:6];
[renderEncoder endEncoding];
[commandBuffer commit];
[commandBuffer waitUntilCompleted];
[commandBuffer presentDrawable:drawable];
[drawable present];
}
[commandBuffer commit];
}
void S9xTextMode (void)