mirror of
https://github.com/love2d/love.git
synced 2026-08-15 15:51:12 +02:00
Fix issue #294 (really this time).
Add stencil attachment to framebuffer creation. Needed to remove depth attachment to make it work, but that should not change anything, since depth test is not enabled anyway. May need testing nonetheless.
This commit is contained in:
@@ -169,9 +169,6 @@ namespace opengl
|
||||
|
||||
static int setStencil(lua_State * L, bool invert)
|
||||
{
|
||||
// stencils require the default fb to work properly
|
||||
Canvas::TemporaryUnbinder unbinder;
|
||||
|
||||
// no argument -> clear mask
|
||||
if (lua_isnoneornil(L, 1)) {
|
||||
instance->discardStencil();
|
||||
|
||||
Reference in New Issue
Block a user