@@ -7343,7 +7343,7 @@ static int lua_cocos2dx_backend_ProgramState_getUniformLocation(lua_State* tolua
7343
7343
7344
7344
if (!ok) { break ; }
7345
7345
cocos2d::backend::UniformLocation ret = cobj->getUniformLocation (arg0);
7346
- uniformLocation_to_luaval (tolua_S, ret);
7346
+ uniformLocation_to_luaval (tolua_S, ret);
7347
7347
return 1 ;
7348
7348
}
7349
7349
else if (lua_isnumber (tolua_S, -1 ))
@@ -7396,23 +7396,23 @@ static int lua_cocos2dx_ProgramState_setUniform(lua_State *tolua_S)
7396
7396
{
7397
7397
cocos2d::backend::UniformLocation location;
7398
7398
7399
- if (lua_isstring (tolua_S, - 2 ))
7399
+ if (lua_isstring (tolua_S, 2 ))
7400
7400
{
7401
- location = self->getUniformLocation (lua_tostring (tolua_S, - 2 ));
7401
+ location = self->getUniformLocation (lua_tostring (tolua_S, 2 ));
7402
7402
}
7403
- else if (lua_istable (tolua_S, - 2 ))
7403
+ else if (lua_istable (tolua_S, 2 ))
7404
7404
{
7405
- ok &= luaval_to_uniformLocation (tolua_S, - 2 , location, " lua_cocos2dx_ProgramState_setUniform " );
7405
+ ok &= luaval_to_uniformLocation (tolua_S, 2 , location, " ccb.ProgramState:setUniform " );
7406
7406
}
7407
7407
7408
- if (ok & lua_istable (tolua_S, - 1 ))
7408
+ if (ok & lua_istable (tolua_S, 3 ))
7409
7409
{
7410
- int len = lua_objlen (tolua_S, - 1 );
7410
+ int len = lua_objlen (tolua_S, 3 );
7411
7411
std::vector<uint8_t > buffer (len);
7412
7412
7413
7413
for (int i = 0 ; i < len; i++)
7414
7414
{
7415
- lua_rawgeti (tolua_S, - 1 , i + 1 );
7415
+ lua_rawgeti (tolua_S, 3 , i + 1 );
7416
7416
buffer[i] = lua_tointeger (tolua_S, -1 );
7417
7417
lua_pop (tolua_S, 1 );
7418
7418
}
0 commit comments