From 401ec05d0078be40d8535171fa75ee0159c18e8d Mon Sep 17 00:00:00 2001 From: bjorn Date: Fri, 12 Aug 2022 22:44:24 -0700 Subject: [PATCH] Fix Pass:send with textures/samplers; --- src/api/l_graphics_pass.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/l_graphics_pass.c b/src/api/l_graphics_pass.c index bf3935cf..19554ec1 100644 --- a/src/api/l_graphics_pass.c +++ b/src/api/l_graphics_pass.c @@ -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);