Detecting Windows Vista? Working around OpenGL crash on Vista.
by Kalle Wik · in Torque Game Builder · 12/17/2007 (2:25 pm) · 0 replies
Greetings,
TGB 1.5 and 1.6 rock! There seems to be a command missing though...
Question:
Is there any way to determine whether the engine is running in Windows XP or Windows Vista? Eg., a platform version variable of some sort? Searched all the docs, site and source code, and did discover a $platform variable which reports "windows" or "macintosh" respectively. But there doesn't seem any way to detect Vista versus XP, at least from script.
Bug Report:
Vista crashes whenever you ALT TAB away from a fullscreen app, then return, if you are in OpenGL mode.
Repro steps:
1. Install Rack Em Up Road Trip on Vista
2. Use the OpenGL renderer in Fullscreen
3. ALT TAB away to minimize to task bar
4. Click to re-open the game
---> CRASH <---
This doesn't occur in D3D renderer.
So there would be a nice fix to check if the system is Vista, and simply always use D3D in that case.
Is there a script layer fix for this or should we get up into the C++ code? Advisement appreciated.
TGB 1.5 and 1.6 rock! There seems to be a command missing though...
Question:
Is there any way to determine whether the engine is running in Windows XP or Windows Vista? Eg., a platform version variable of some sort? Searched all the docs, site and source code, and did discover a $platform variable which reports "windows" or "macintosh" respectively. But there doesn't seem any way to detect Vista versus XP, at least from script.
Bug Report:
Vista crashes whenever you ALT TAB away from a fullscreen app, then return, if you are in OpenGL mode.
Repro steps:
1. Install Rack Em Up Road Trip on Vista
2. Use the OpenGL renderer in Fullscreen
3. ALT TAB away to minimize to task bar
4. Click to re-open the game
---> CRASH <---
This doesn't occur in D3D renderer.
So there would be a nice fix to check if the system is Vista, and simply always use D3D in that case.
Is there a script layer fix for this or should we get up into the C++ code? Advisement appreciated.