mirror of https://github.com/bjornbytes/lovr.git
mv lovr.graphics.init lovr.graphics.initialize;
init is undocumentable due to Lua conventions.
This commit is contained in:
parent
f30e37a2e3
commit
5c4fc79242
|
@ -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
|
||||
|
|
|
@ -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 },
|
||||
|
|
Loading…
Reference in New Issue