Better Pass:send('var', nil) error;

This commit is contained in:
bjorn 2022-08-25 23:54:11 -07:00
parent f4f95a64d7
commit d655daf213
1 changed files with 4 additions and 0 deletions

View File

@ -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) {