mirror of
https://github.com/love2d/love.git
synced 2026-08-17 11:00:31 +02:00
Fixed the internal color mask state not being updated when love.graphics.setColorMask is called.
This commit is contained in:
@@ -898,6 +898,7 @@ std::vector<Canvas *> Graphics::getCanvas() const
|
||||
void Graphics::setColorMask(ColorMask mask)
|
||||
{
|
||||
glColorMask(mask.r, mask.g, mask.b, mask.a);
|
||||
states.back().colorMask = mask;
|
||||
}
|
||||
|
||||
Graphics::ColorMask Graphics::getColorMask() const
|
||||
|
||||
@@ -168,7 +168,7 @@ int w_stencil(lua_State *L)
|
||||
instance()->drawToStencilBuffer(true);
|
||||
|
||||
// Call stencilfunc()
|
||||
lua_pushvalue(L, 1);
|
||||
lua_pushvalue(L, 1);
|
||||
lua_call(L, 0, 0);
|
||||
|
||||
instance()->drawToStencilBuffer(false);
|
||||
|
||||
Reference in New Issue
Block a user