diff --git a/cocos/scripting/lua/bindings/LuaOpengl.cpp.REMOVED.git-id b/cocos/scripting/lua/bindings/LuaOpengl.cpp.REMOVED.git-id index 42910a1d92..caaa6e32e0 100644 --- a/cocos/scripting/lua/bindings/LuaOpengl.cpp.REMOVED.git-id +++ b/cocos/scripting/lua/bindings/LuaOpengl.cpp.REMOVED.git-id @@ -1 +1 @@ -bcec27eb626dbcf63b810cce7f0f48b2d02c2158 \ No newline at end of file +bc70bac577759c95fbcf25da6937dbd9109da8d5 \ No newline at end of file diff --git a/samples/Lua/TestLua/Resources/luaScript/OpenGLTest/OpenGLTest.lua b/samples/Lua/TestLua/Resources/luaScript/OpenGLTest/OpenGLTest.lua index 91ac6844e4..e34f399e07 100644 --- a/samples/Lua/TestLua/Resources/luaScript/OpenGLTest/OpenGLTest.lua +++ b/samples/Lua/TestLua/Resources/luaScript/OpenGLTest/OpenGLTest.lua @@ -147,7 +147,7 @@ local function OpenGLTestMainLayer() local i = 0 local len = table.getn(children) for i= 0 ,len - 1 do - local child = tolua.cast(children[i + 1], "Sprite") + local child = tolua.cast(children[i + 1], "cc.Sprite") local oldPosX,oldPosY = child:getPosition() child:setPosition(oldPosX,math.sin(accum * 2 + i / 2.0) * 20) local scaleY = math.sin(accum * 2 + i / 2.0 + 0.707) @@ -558,7 +558,7 @@ local function OpenGLTestMainLayer() local function getCurrentResult() local var = {} - local glProgam = tolua.cast(sprite:getShaderProgram(),"GLProgram") + local glProgam = tolua.cast(sprite:getShaderProgram(),"cc.GLProgram") if nil ~= glProgam then local p = glProgam:getProgram() local aaSize,aaType,aaName = gl.getActiveAttrib(p,0)