mirror of https://github.com/bjornbytes/lovr.git
Better Pass:send('var', nil) error;
This commit is contained in:
parent
f4f95a64d7
commit
d655daf213
|
@ -454,6 +454,10 @@ static int l_lovrPassSend(lua_State* L) {
|
|||
default: return luax_typeerror(L, 2, "string or number");
|
||||
}
|
||||
|
||||
if (lua_isnoneornil(L, 3)) {
|
||||
return luax_typeerror(L, 3, "Buffer, Texture, Sampler, number, vector, table, or boolean");
|
||||
}
|
||||
|
||||
Buffer* buffer = luax_totype(L, 3, Buffer);
|
||||
|
||||
if (buffer) {
|
||||
|
|
Loading…
Reference in New Issue