Browse Source

Fixed wrapper bugs in setLine and setPoint.

rude 15 years ago
parent
commit
c5e8308d5f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/modules/graphics/opengl/wrap_Graphics.cpp

+ 2 - 2
src/modules/graphics/opengl/wrap_Graphics.cpp

@@ -430,7 +430,7 @@ namespace opengl
 
 
 		if(lua_gettop(L) >= 2)
 		if(lua_gettop(L) >= 2)
 		{
 		{
-			const char * str = luaL_checkstring(L, 1);
+			const char * str = luaL_checkstring(L, 2);
 			if(!Graphics::getConstant(str, style))
 			if(!Graphics::getConstant(str, style))
 				return luaL_error(L, "Invalid line style: %s", str);
 				return luaL_error(L, "Invalid line style: %s", str);
 		}
 		}
@@ -500,7 +500,7 @@ namespace opengl
 		float size = (float)luaL_checknumber(L, 1);
 		float size = (float)luaL_checknumber(L, 1);
 
 
 		Graphics::PointStyle style;
 		Graphics::PointStyle style;
-		const char * str = luaL_checkstring(L, 1);
+		const char * str = luaL_checkstring(L, 2);
 		if(!Graphics::getConstant(str, style))
 		if(!Graphics::getConstant(str, style))
 			return luaL_error(L, "Invalid point style: %s", str);
 			return luaL_error(L, "Invalid point style: %s", str);