mirror of
https://github.com/love2d/love.git
synced 2026-08-13 17:10:54 +02:00
Restore no-parameter variant of love.graphics.setColorMask.
This commit is contained in:
@@ -2355,7 +2355,11 @@ int w_setColorMask(lua_State *L)
|
||||
{
|
||||
ColorChannelMask mask;
|
||||
|
||||
if (lua_gettop(L) <= 1)
|
||||
if (lua_isnoneornil(L, 1))
|
||||
{
|
||||
mask.r = mask.g = mask.b = mask.a = true;
|
||||
}
|
||||
else if (lua_gettop(L) <= 1)
|
||||
{
|
||||
// Set all color components if a single argument is given.
|
||||
mask.r = mask.g = mask.b = mask.a = luax_checkboolean(L, 1);
|
||||
|
||||
Reference in New Issue
Block a user