Mac: Wait for metal command buffer to finish before presenting drawable, properly this time
This commit is contained in:
parent
2956be7559
commit
55d50c7fbd
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user