mv lovr.graphics.init lovr.graphics.initialize;

init is undocumentable due to Lua conventions.
This commit is contained in:
bjorn 2022-09-10 10:22:52 -07:00
parent f30e37a2e3
commit 5c4fc79242
2 changed files with 3 additions and 3 deletions

View File

@ -87,7 +87,7 @@ function lovr.boot()
end
if lovr.graphics then
lovr.graphics.init()
lovr.graphics.initialize()
end
if lovr.headset and lovr.graphics and conf.window then

View File

@ -625,7 +625,7 @@ static void luax_writeshadercache(void) {
free(data);
}
static int l_lovrGraphicsInit(lua_State* L) {
static int l_lovrGraphicsInitialize(lua_State* L) {
GraphicsConfig config = {
.debug = false,
.vsync = false,
@ -1488,7 +1488,7 @@ static int l_lovrGraphicsGetPass(lua_State* L) {
}
static const luaL_Reg lovrGraphics[] = {
{ "init", l_lovrGraphicsInit },
{ "initialize", l_lovrGraphicsInitialize },
{ "submit", l_lovrGraphicsSubmit },
{ "present", l_lovrGraphicsPresent },
{ "wait", l_lovrGraphicsWait },