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

@ -369,10 +369,12 @@ static void S9xPutImageMetal (int width, int height, uint16 *buffer16)
[renderEncoder endEncoding];
[commandBuffer presentDrawable:drawable];
}
[commandBuffer commit];
[commandBuffer commit];
[commandBuffer waitUntilCompleted];
[drawable present];
}
}
void S9xTextMode (void)