View Single Post
Old 09-17-2010, 07:25 AM
CrashPilot CrashPilot is offline
Join Date: Jun 2009
Location: Netherlands
Posts: 73

I knew the answer to that question, i'll get back to you when I look at my source at home this evening. As far as I recall now it has to do that the device is reset on a form resize. Minimizing does fire that event. (you can hook it from your device). And the device needs to be recreated for the adjusted form size. Also when a device is reset all of your recourses that are not managed need to be recreated. Those include vertices, lights, textures, sprites etc. Normally (for performance reasons) your recources would be unmanaged. Trying to render anything that doesn't exist will throw an error. Do you not get the same error when resizing the window by dragging the borders?

I'll post some source tonight when I get back from work.
-- I divided by zero... and survived --
Reply With Quote