Minimizing/alt-tab out of fullscreen when loading causes some/all scenery to be missing
Bug #1265789 reported by
Klaus Hupfer
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Open Rails |
Fix Released
|
Low
|
James Ross |
Bug Description
When using <ALT>-<TAB> during the startscreen the sceneryscreen is black or is displayed without the terrtex (-> attatched ZIP-File with OpenRailsLog.txt, Picture of Errorsituation, Picture after start of OR without <ALT>-<TAB>).
Cheers
Klaus
Route: Phantasyroute, runs OK in MSTS
Changed in or: | |
assignee: | nobody → James Ross (twpol) |
Changed in or: | |
status: | New → Triaged |
importance: | Undecided → Low |
Changed in or: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
This is going to be a pain to fix, as it looks like an XNA bug/limitation.
When you alt-tab out of fullscreen, the DirectX device is "lost" (this is normal). However, XNA does not "fix" it (i.e. recover from the loss) until it next draws a frame - which won't happen until you alt-tab back in to the game. This means that there is no working DirectX device whilst the game in minimised.
Now, normally, anything you've created prior to the device being lost is automatically restored by XNA (which is why alt-tab out and back in works fine once in-game), but in this case, things are created *whilst* the device is lost and as a result XNA doesn't try and fix them. :(