diff --git a/src/modules/graphics/opengl/wrap_Graphics.cpp b/src/modules/graphics/opengl/wrap_Graphics.cpp index 47b9ac26c..08809903e 100644 --- a/src/modules/graphics/opengl/wrap_Graphics.cpp +++ b/src/modules/graphics/opengl/wrap_Graphics.cpp @@ -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)) {