Resolution change and purple screen
by T. Chamill · in Torque X 2D · 08/05/2008 (9:47 am) · 2 replies
Two questions here, sorry if they've been answered in another place, I wasn't able to find anything using search.
1. I can change the game resolution during the BeginRun() method with no problems. However, if I try to change the resolution after that (such as when the user picks a new resolution from an options menu) the window resizes, but the screen is purple. A moment later, I get an exception that reads "ResolveBackBuffer target texture is not the same size as the backbuffer. Parameter name: resolveTarget." I'm not sure how to go about fixing this. I've tried reloading the T2DSceneGraph and the camera, to no effect. I've been changing the resolution using GraphicsDeviceManager.PreferredBackBufferWidth and GraphicsDeviceManager.PreferredBackBufferHeight, is their a better way/a way that doesn't cause this problem?
2. The screen also turns purple after minimizing and then maximizing, or after going to or from full screen. Is there some sort of "refresh" method I need to call after any of these events? I followed the solution for disappearing objects with a purple background found in a different thread (http://www.garagegames.com/mg/forums/result.thread.php?qt=71127), but it didn't fix this problem.
1. I can change the game resolution during the BeginRun() method with no problems. However, if I try to change the resolution after that (such as when the user picks a new resolution from an options menu) the window resizes, but the screen is purple. A moment later, I get an exception that reads "ResolveBackBuffer target texture is not the same size as the backbuffer. Parameter name: resolveTarget." I'm not sure how to go about fixing this. I've tried reloading the T2DSceneGraph and the camera, to no effect. I've been changing the resolution using GraphicsDeviceManager.PreferredBackBufferWidth and GraphicsDeviceManager.PreferredBackBufferHeight, is their a better way/a way that doesn't cause this problem?
2. The screen also turns purple after minimizing and then maximizing, or after going to or from full screen. Is there some sort of "refresh" method I need to call after any of these events? I followed the solution for disappearing objects with a purple background found in a different thread (http://www.garagegames.com/mg/forums/result.thread.php?qt=71127), but it didn't fix this problem.
#2
06/14/2009 (2:39 pm)
This is stopping me running my game fullscreen. Any news on a fix for this yet?
Associate John Kanalakis
EnvyGames
John K.