mirror of
https://github.com/love2d/love.git
synced 2026-08-12 00:20:52 +02:00
fix love.graphics.newBuffer not requiring locations for vertex buffer formats.
This commit is contained in:
@@ -1789,7 +1789,7 @@ static void luax_checkbufferformat(lua_State *L, int idx, const Buffer::Settings
|
||||
return;
|
||||
}
|
||||
|
||||
bool requirelocation = (settings.usageFlags & BUFFERUSAGE_VERTEX) != 0;
|
||||
bool requirelocation = (settings.usageFlags & BUFFERUSAGEFLAG_VERTEX) != 0;
|
||||
|
||||
luaL_checktype(L, idx, LUA_TTABLE);
|
||||
int tablelen = luax_objlen(L, idx);
|
||||
|
||||
Reference in New Issue
Block a user