Fix Pass:clear(buffer);

This commit is contained in:
bjorn 2023-02-25 00:01:31 -08:00
parent 04c4dee851
commit 4afb0ae2bf
1 changed files with 1 additions and 1 deletions

View File

@ -813,7 +813,7 @@ static int l_lovrPassClear(lua_State* L) {
const BufferInfo* info = lovrBufferGetInfo(buffer);
uint32_t index = luax_optu32(L, 3, 1);
uint32_t count = luax_optu32(L, 4, info->length - index + 1);
lovrBufferClear(buffer, (index - 1) * info->stride, count * info->stride);
lovrPassClearBuffer(pass, buffer, (index - 1) * info->stride, count * info->stride);
return 0;
}