mirror of https://github.com/bjornbytes/lovr.git
Don't cast floats to ints in Shader:send;
This commit is contained in:
parent
d67ec24884
commit
8d49e05772
|
@ -61,7 +61,7 @@ int l_lovrShaderSend(lua_State* L) {
|
|||
switch (uniform->type) {
|
||||
case UNIFORM_FLOAT:
|
||||
if (components == 1) {
|
||||
floats[0] = luaL_checkinteger(L, 3);
|
||||
floats[0] = luaL_checknumber(L, 3);
|
||||
} else {
|
||||
luaL_checktype(L, 3, LUA_TTABLE);
|
||||
for (int i = 0; i < n; i++) {
|
||||
|
|
Loading…
Reference in New Issue