diff options
author | eray orçunus <erayorcunus@gmail.com> | 2020-04-26 12:25:03 +0200 |
---|---|---|
committer | eray orçunus <erayorcunus@gmail.com> | 2020-04-26 12:29:50 +0200 |
commit | 6c1a1f7cd20a2674f33b5318e6e07a3a28d016f6 (patch) | |
tree | 7a01b47b48a106ca6ff9154cc5c14d3baf54c22f /src/fakerw | |
parent | update librw (diff) | |
download | re3-6c1a1f7cd20a2674f33b5318e6e07a3a28d016f6.tar re3-6c1a1f7cd20a2674f33b5318e6e07a3a28d016f6.tar.gz re3-6c1a1f7cd20a2674f33b5318e6e07a3a28d016f6.tar.bz2 re3-6c1a1f7cd20a2674f33b5318e6e07a3a28d016f6.tar.lz re3-6c1a1f7cd20a2674f33b5318e6e07a3a28d016f6.tar.xz re3-6c1a1f7cd20a2674f33b5318e6e07a3a28d016f6.tar.zst re3-6c1a1f7cd20a2674f33b5318e6e07a3a28d016f6.zip |
Diffstat (limited to 'src/fakerw')
-rw-r--r-- | src/fakerw/fake.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/fakerw/fake.cpp b/src/fakerw/fake.cpp index c4ff2dd2..3d4ddf5d 100644 --- a/src/fakerw/fake.cpp +++ b/src/fakerw/fake.cpp @@ -460,13 +460,17 @@ RwBool RwRenderStateSet(RwRenderState state, void *value) } } - -static EngineOpenParams openParams; // WARNING: unused parameters RwBool RwEngineInit(RwMemoryFunctions *memFuncs, RwUInt32 initFlags, RwUInt32 resArenaSize) { Engine::init(); return true; } // TODO: this is platform dependent RwBool RwEngineOpen(RwEngineOpenParams *initParams) { +#if defined RW_D3D9 || defined RWLIBS + static EngineOpenParams openParams; openParams.window = (HWND)initParams->displayID; +#else + extern EngineOpenParams openParams; + openParams.window = (GLFWwindow**)initParams->displayID; +#endif return Engine::open(&openParams); } RwBool RwEngineStart(void) { |