Commits

vrld committed e14edb8

Discard active stencil when switching canvas.

Comments (0)

Files changed (1)

src/modules/graphics/opengl/wrap_Graphics.cpp

 
 	int w_setCanvas(lua_State * L)
 	{
+		// discard stencil testing
+		instance->discardStencil();
+
 		// called with nil or none -> reset to default buffer
 		if (lua_isnoneornil(L,1))
 		{