Hello ChrisB,

I`ve got a problem with your plugin. It works great by part, but when I try changing the screen resolution in real time, the engine does some wild stuff. This is not always the case, but true for some special resolution changes.
Changing the resolution works great for the first time, but when I`m trying to switch the resolution once more to a resolution that was already chosen before, the error appears.

Error appers:

1650x1050->works->1280x800->works->1440x900->crashes->1680x1050
--
1680x1050->works->1024x768->crashes->1680x1050
--
It seems that it has to do something with resolutions that were already chosen before.


Is this a known problem?


My code:

Code:
function set_graphics()
{
	wait(1);
	fsaa_setQuality(0);
	render_sky=NULL;
	render_entities=NULL;
	laden_an();
	wait(16);
	video_set(aufl_x_i,aufl_y_i,32,0);

	if(monitor_type_i == 1) //16:10 Monitor
	{
		camera.arc=85;
		camera.aspect = 1.1;
	}
	if(monitor_type_i == 0) //4:3 Monitor
	{
		camera.arc=70;
		camera.aspect = 0.9;
	}	

	wait(-1);
	render_sky=fsaa_eventSky;
	render_entities=fsaa_eventEntities;
	wait(1);
	fsaa_setQuality(AA_i);
	wait(16);
	laden_aus();
}



After ALT+TAB I get "Error E2005: Can`t create DirectX texture unnamed"

I`m using A7.86 Commercial. No Shade-C. Just your plugin for testing purposes.

Is there maybe any option to completely reset the plugin after every resolution change?

Thank you very much for helping,
Rondidon