shaderBlock:send(blob) did not work due to typo

This commit is contained in:
mcc 2020-05-20 16:34:19 -04:00
parent 75e26f0051
commit 89cdeb1e4f
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ static int l_lovrShaderBlockSend(lua_State* L) {
lovrBufferFlush(buffer, uniform->offset, uniform->size);
return 0;
} else {
Blob* blob = luax_checktype(L, 1, Blob);
Blob* blob = luax_checktype(L, 2, Blob);
Buffer* buffer = lovrShaderBlockGetBuffer(block);
void* data = lovrBufferMap(buffer, 0);
size_t bufferSize = lovrBufferGetSize(buffer);