summaryrefslogtreecommitdiffstats
path: root/src/fakerw
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-04-30 10:18:02 +0200
committeraap <aap@papnet.eu>2020-04-30 15:38:25 +0200
commit1b40693f80f142e967b9bda0613f3cf262482f89 (patch)
treebe29e35332c90024b50fd78351506898c6eb5f03 /src/fakerw
parentMerge branch 'master' of github.com:gtamodding/re3 (diff)
downloadre3-1b40693f80f142e967b9bda0613f3cf262482f89.tar
re3-1b40693f80f142e967b9bda0613f3cf262482f89.tar.gz
re3-1b40693f80f142e967b9bda0613f3cf262482f89.tar.bz2
re3-1b40693f80f142e967b9bda0613f3cf262482f89.tar.lz
re3-1b40693f80f142e967b9bda0613f3cf262482f89.tar.xz
re3-1b40693f80f142e967b9bda0613f3cf262482f89.tar.zst
re3-1b40693f80f142e967b9bda0613f3cf262482f89.zip
Diffstat (limited to 'src/fakerw')
-rw-r--r--src/fakerw/fake.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/fakerw/fake.cpp b/src/fakerw/fake.cpp
index ccc7635f..113c4519 100644
--- a/src/fakerw/fake.cpp
+++ b/src/fakerw/fake.cpp
@@ -490,12 +490,11 @@ RwBool RwRenderStateSet(RwRenderState state, void *value)
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;
+#ifdef RW_D3D9
openParams.window = (HWND)initParams->displayID;
#else
- extern EngineOpenParams openParams;
- openParams.window = (GLFWwindow**)initParams->displayID;
+ openParams = *(EngineOpenParams*)initParams->displayID;
#endif
return Engine::open(&openParams);
}