mirror of
https://github.com/love2d/love.git
synced 2026-08-15 15:51:12 +02:00
Fixed wrapper bugs in setLine and setPoint.
This commit is contained in:
@@ -430,7 +430,7 @@ namespace opengl
|
||||
|
||||
if(lua_gettop(L) >= 2)
|
||||
{
|
||||
const char * str = luaL_checkstring(L, 1);
|
||||
const char * str = luaL_checkstring(L, 2);
|
||||
if(!Graphics::getConstant(str, style))
|
||||
return luaL_error(L, "Invalid line style: %s", str);
|
||||
}
|
||||
@@ -500,7 +500,7 @@ namespace opengl
|
||||
float size = (float)luaL_checknumber(L, 1);
|
||||
|
||||
Graphics::PointStyle style;
|
||||
const char * str = luaL_checkstring(L, 1);
|
||||
const char * str = luaL_checkstring(L, 2);
|
||||
if(!Graphics::getConstant(str, style))
|
||||
return luaL_error(L, "Invalid point style: %s", str);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user