mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
Revert most render pass API changes. The APIs need more work and iteration before they’re better to use than the old setCanvas APIs.
love.graphics.captureScreenshot has not been reverted. --HG-- branch : minor
This commit is contained in:
@@ -806,7 +806,7 @@ void Shader::checkSetScreenParams()
|
||||
Rect view = gl.getViewport();
|
||||
|
||||
auto gfx = Module::getInstance<Graphics>(Module::M_GRAPHICS);
|
||||
bool canvasActive = gfx->getActivePass().colorAttachmentCount > 0;
|
||||
bool canvasActive = gfx->isCanvasActive();
|
||||
|
||||
if (view == lastViewport && canvasWasActive == canvasActive)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user