Fixed the internal color mask state not being updated when love.graphics.setColorMask is called.

This commit is contained in:
Alex Szpakowski
2015-03-10 01:13:39 -03:00
parent 2e8f19930c
commit b1f4beac56
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -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);