Fix Pass:send with textures/samplers;

This commit is contained in:
bjorn 2022-08-12 22:44:24 -07:00
parent f6a1fbdfb9
commit 401ec05d00
1 changed files with 2 additions and 2 deletions

View File

@ -554,14 +554,14 @@ static int l_lovrPassSend(lua_State* L) {
return 0;
}
Texture* texture = luax_totype(L, 4, Texture);
Texture* texture = luax_totype(L, 3, Texture);
if (texture) {
lovrPassSendTexture(pass, name, length, slot, texture);
return 0;
}
Sampler* sampler = luax_totype(L, 4, Sampler);
Sampler* sampler = luax_totype(L, 3, Sampler);
if (sampler) {
lovrPassSendSampler(pass, name, length, slot, sampler);