Discard active stencil when switching canvas.

This commit is contained in:
vrld
2011-12-29 15:27:04 +01:00
parent b0fbff108c
commit 6178aea6ef
@@ -712,6 +712,9 @@ namespace opengl
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))
{