[Engine init] Exclusive full screen exception
- Dominant language
- C++
- Stars
- 980
- Forks
- 118
- PR merge metrics
- No merged PRs in 30d
Description
if I set exclusive full screen setting to true in the Settings.ini file and start a new instance of the engine in Windows, the engine crashes in Window->init, as the window is initialized before the renderer.
I noticed the problem happens here:
File: NativeWindowWin.cpp
Method: switchFullscreen
Inside:
if (exclusiveFullscreen)
{
//uninitialized D3D renderer is called
// from the NativeWindowWin.
}
Am I doing anything wrong or is there a fix?
Thanks in advance
Contributor guide
No contributing guide indexed for this repository
Research direction
Inspect NativeWindowWin.cpp, especially switchFullscreen, and reproduce the crash on Windows with exclusiveFullscreen enabled in Settings.ini. Trace the initialization order between the window and renderer; done means starting a new engine instance no longer crashes in Window->init.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- game-dev, operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100