Skip to content

Commit

Permalink
Fix Pass:compute error handling;
Browse files Browse the repository at this point in the history
  • Loading branch information
bjornbytes committed Jan 26, 2025
1 parent 30b904d commit 62201f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/l_graphics_pass.c
Original file line number Diff line number Diff line change
Expand Up @@ -1064,12 +1064,12 @@ static int l_lovrPassCompute(lua_State* L) {
Buffer* buffer = luax_totype(L, 2, Buffer);
if (buffer) {
uint32_t offset = lua_tointeger(L, 3);
lovrPassCompute(pass, 0, 0, 0, buffer, offset);
luax_assert(L, lovrPassCompute(pass, 0, 0, 0, buffer, offset));
} else {
uint32_t x = luax_optu32(L, 2, 1);
uint32_t y = luax_optu32(L, 3, 1);
uint32_t z = luax_optu32(L, 4, 1);
lovrPassCompute(pass, x, y, z, NULL, 0);
luax_assert(L, lovrPassCompute(pass, x, y, z, NULL, 0));
}
return 0;
}
Expand Down

0 comments on commit 62201f2

Please sign in to comment.