diff options
| author | Alexander M Pickering <alex@cogarr.net> | 2023-04-15 17:51:59 -0500 |
|---|---|---|
| committer | Alexander M Pickering <alex@cogarr.net> | 2023-04-15 17:51:59 -0500 |
| commit | b1f223599d67c752da34dcaaf024eb9e3584f10a (patch) | |
| tree | efffcff3e3d9c447f2630d5aed2a64769d511fe6 /src | |
| parent | 3b2811062a75dd623e09486cff68ecdeab180693 (diff) | |
| download | brokengine-b1f223599d67c752da34dcaaf024eb9e3584f10a.tar.gz brokengine-b1f223599d67c752da34dcaaf024eb9e3584f10a.tar.bz2 brokengine-b1f223599d67c752da34dcaaf024eb9e3584f10a.zip | |
Create device statically
Diffstat (limited to 'src')
| -rw-r--r-- | src/client/initdevice.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/initdevice.cpp b/src/client/initdevice.cpp index 35abade..34a07af 100644 --- a/src/client/initdevice.cpp +++ b/src/client/initdevice.cpp @@ -179,6 +179,7 @@ IrrlichtDevice* spawnIrrDevice(lua_State* L, char *path){ char filename[pathlen + 1]; sprintf(filename,"%s/%s",path,initname); int iErr = luaL_dofile(L,filename);//ret + /* TODO: This is currently broken SIrrlichtCreationParameters p; if(iErr != 0){ printf("Failed to open lua file:%s\n", filename); @@ -190,7 +191,7 @@ IrrlichtDevice* spawnIrrDevice(lua_State* L, char *path){ printf("Creating device...\n"); IrrlichtDevice* dev = createDeviceEx(p); printf("[OK]\n"); - /* + */ printf("Creating static device:\n"); IrrlichtDevice* dev = createDevice( video::EDT_OPENGL, @@ -201,7 +202,6 @@ IrrlichtDevice* spawnIrrDevice(lua_State* L, char *path){ false, 0 ); - */ if(!dev){ printf("Failed to create device\n"); exit(1); |
