1. thelinx
  2. love

Commits

Matthias Richter  committed e14edb8

Discard active stencil when switching canvas.

  • Participants
  • Parent commits e420a58
  • Branches default

Comments (0)

Files changed (1)

File src/modules/graphics/opengl/wrap_Graphics.cpp

View file
  • Ignore whitespace
 
 	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))
 		{