View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0006307||Multi Theft Auto : San Andreas||Client||public||2011-08-04 10:40||2011-08-06 12:29|
|Platform||PC||OS||Windows||OS Version||7 64-bit|
|Target Version||1.1||Fixed in Version||1.1|
|Summary||0006307: Render targets have a tendency to break with alt+tab|
When using alt+tab to get out of MTA for a moment and coming back, some of the server's graphics may either have turned black or be gone entirely.
The radar uses shaders to replace the background of the map to a render target. The arrows on both the radar and the big screen are textures loaded by dxCreateTexture. The arrows work just fine, but the background (render target) is gone.
The text on the left is being drawn onto a render target once, as I guess that should cost less performance than doing dxDrawText over and over and over again. But this render target disappears as well. This render target has alpha enabled, and seems to turn transparent instead of black.
The FPS monitor in the bottom-right is still visible however. That's extremely odd, because the monitor also uses a few render targets. Yet, these remain working after alt+tab. The same applies to the "Nyan" fist replacement. This uses a render target to draw 1 out of 12 nyan images. Yet, although the radar blacks out, the Nyan cat Nyans on.
|Steps To Reproduce|
Get in a server with plenty of different render targets. There will surely be something that'll disappear after an alt+tab.
|Tags||No tags attached.|
The render targets aren't gone, they get cleared as a consequence of the alt-tab.
Can't the render targets simply be reset to the value they had before? Isn't there some way to store the render targets or perhaps to stop DirectX from clearing the render target?
Issue automatically marked as fixed by mantisbot ( Fixed in http://code.google.com/p/mtasa-blue/source/detail?r=2945 )