Fix polygon drawing: index of coordinates was off by one.

--HG--
branch : minor
This commit is contained in:
vrld
2011-04-25 23:45:15 +02:00
parent 2425ea9979
commit 1b8b144bc8
2 changed files with 2 additions and 2 deletions
@@ -901,7 +901,7 @@ namespace opengl
}
} else {
for (int i = 0; i < args; ++i)
coords[i] = lua_tonumber(L, i + 1);
coords[i] = lua_tonumber(L, i + 2);
}
// make a closed loop