mirror of
https://github.com/love2d/love.git
synced 2026-08-19 12:14:20 +02:00
Fix Shader:send and sendColor ignoring the last argument for shader uniform arrays.
This commit is contained in:
@@ -48,7 +48,7 @@ int w_Shader_getWarnings(lua_State *L)
|
|||||||
|
|
||||||
static int _getCount(lua_State *L, int startidx, const Shader::UniformInfo *info)
|
static int _getCount(lua_State *L, int startidx, const Shader::UniformInfo *info)
|
||||||
{
|
{
|
||||||
return std::min(std::max(lua_gettop(L) - startidx, 1), info->count);
|
return std::min(std::max(lua_gettop(L) - startidx + 1, 1), info->count);
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
|
|||||||
Reference in New Issue
Block a user