mirror of
https://github.com/love2d/love.git
synced 2026-08-17 11:00:31 +02:00
metal: more robust render pass handling.
Initial implementation of captureScreenshot. Fix getStats().shaderswitches. Fix getStats().drawcalls.
This commit is contained in:
@@ -245,7 +245,7 @@ void Texture::readbackImageData(love::image::ImageData *imagedata, int slice, in
|
||||
id<MTLCommandBuffer> cmd = gfx->getCommandBuffer();
|
||||
|
||||
gfx->submitBlitEncoder();
|
||||
gfx->submitCommandBuffer();
|
||||
gfx->submitCommandBuffer(Graphics::SUBMIT_STORE);
|
||||
|
||||
[cmd waitUntilCompleted];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user