mirror of
https://github.com/love2d/love.git
synced 2026-08-17 11:00:31 +02:00
Discard active stencil when switching canvas.
This commit is contained in:
@@ -712,6 +712,9 @@ namespace opengl
|
|||||||
|
|
||||||
int w_setCanvas(lua_State * L)
|
int w_setCanvas(lua_State * L)
|
||||||
{
|
{
|
||||||
|
// discard stencil testing
|
||||||
|
instance->discardStencil();
|
||||||
|
|
||||||
// called with nil or none -> reset to default buffer
|
// called with nil or none -> reset to default buffer
|
||||||
if (lua_isnoneornil(L,1))
|
if (lua_isnoneornil(L,1))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user