mirror of
https://github.com/love2d/love.git
synced 2026-08-12 16:40:57 +02:00
metal: improve performance of auto depth/stencil in setCanvas.
This commit is contained in:
@@ -907,6 +907,11 @@ void Graphics::setRenderTargets(const RenderTargets &rts)
|
||||
renderTargetSwitchCount++;
|
||||
|
||||
resetProjection();
|
||||
|
||||
// Invalidate temporary depth/stencil. This could be a clear, but if the
|
||||
// user also clears a double-clear may be slow...
|
||||
if (rts.depthStencil.texture == nullptr && rts.temporaryRTFlags != 0)
|
||||
discard({}, true);
|
||||
}
|
||||
|
||||
void Graphics::setRenderTarget()
|
||||
|
||||
Reference in New Issue
Block a user