From 7bdef86d3c0eca8edcf1c85d796238bd5720f5ba Mon Sep 17 00:00:00 2001 From: Sasha Szpakowski Date: Mon, 4 May 2026 20:20:33 -0300 Subject: [PATCH] fix love.graphics.newBuffer not requiring locations for vertex buffer formats. --- src/modules/graphics/wrap_Graphics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/graphics/wrap_Graphics.cpp b/src/modules/graphics/wrap_Graphics.cpp index beab3df90..0eb96557a 100644 --- a/src/modules/graphics/wrap_Graphics.cpp +++ b/src/modules/graphics/wrap_Graphics.cpp @@ -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);