mirror of https://github.com/bjornbytes/lovr.git
Fix setColorWrite(bool) variant;
This commit is contained in:
parent
7aebde2f92
commit
e402f02918
|
@ -270,7 +270,7 @@ static int l_lovrPassSetColor(lua_State* L) {
|
||||||
static int l_lovrPassSetColorWrite(lua_State* L) {
|
static int l_lovrPassSetColorWrite(lua_State* L) {
|
||||||
Pass* pass = luax_checktype(L, 1, Pass);
|
Pass* pass = luax_checktype(L, 1, Pass);
|
||||||
bool r, g, b, a;
|
bool r, g, b, a;
|
||||||
if (lua_gettop(L) <= 1) {
|
if (lua_gettop(L) <= 2) {
|
||||||
r = g = b = a = lua_toboolean(L, 2);
|
r = g = b = a = lua_toboolean(L, 2);
|
||||||
} else {
|
} else {
|
||||||
r = lua_toboolean(L, 2);
|
r = lua_toboolean(L, 2);
|
||||||
|
|
Loading…
Reference in New Issue