Преглед на файлове

Fixed SpriteBatch:set with Geometry

Alex Szpakowski преди 12 години
родител
ревизия
dfba650575
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      src/modules/graphics/opengl/wrap_SpriteBatch.cpp

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

@@ -80,9 +80,9 @@ int w_SpriteBatch_set(lua_State *L)
 	Geometry *geom = 0;
 	Geometry *geom = 0;
 	int startidx = 3;
 	int startidx = 3;
 
 
-	if (luax_istype(L, 2, GRAPHICS_GEOMETRY_T))
+	if (luax_istype(L, 3, GRAPHICS_GEOMETRY_T))
 	{
 	{
-		geom = luax_totype<Geometry>(L, 2, "Geometry", GRAPHICS_GEOMETRY_T);
+		geom = luax_totype<Geometry>(L, 3, "Geometry", GRAPHICS_GEOMETRY_T);
 		startidx = 4;
 		startidx = 4;
 	}
 	}