mirror of
https://github.com/GTAmodding/re3.git
synced 2025-08-30 14:55:28 +00:00
improved video modes for glfw
This commit is contained in:
parent
9950d105f7
commit
1b40693f80
3 changed files with 149 additions and 44 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue