Don't cast floats to ints in Shader:send;

This commit is contained in:
bjorn 2018-01-09 20:54:55 -08:00
parent d67ec24884
commit 8d49e05772
1 changed files with 1 additions and 1 deletions

View File

@ -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++) {