Skip to content

Stencil-canvas-related adjustments - #1546

Open
SleepyG11 wants to merge 1 commit into
Steamodded:mainfrom
SleepyG11:stencil-things
Open

SleepyG11 wants to merge 1 commit into
Steamodded:mainfrom
SleepyG11:stencil-things

Conversation

@SleepyG11

@SleepyG11 SleepyG11 commented Sep 10, 2026

Copy link
Copy Markdown
Collaborator

This PR adjust 2 things related to stencils and canvases.

  1. Fixed a crash which happens when love.graphics.getCanvas returns nil.
  2. Adds canvas argument to SMODS.reload_stencil_stack as shortcut for setting canvas together with depthstencil.
-- old way: 2 setCanvas calls
love.graphics.setCanvas(new_canvas)
SMODS.reload_stencil_stack()

-- new way: 1 setCanvas call
-- first argument is full stencil reload, second argument is canvas we want to set
SMODS.reload_stencil_stack(nil, new_canvas)

Additional Info:

  • I didn't modify api's or I've made a PR to the wiki repo.
  • I didn't modify api's or I've updated lsp definitions.
  • I didn't make new lovely files or all new lovely files have appropriate priority.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant