mirror of
https://github.com/love2d/love.git
synced 2026-08-15 15:51:12 +02:00
Fix polygon drawing: index of coordinates was off by one.
--HG-- branch : minor
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user