XNA Generate Mip Maps with Texture.FromStream()

Started by
9 comments, last by phil_t 11 years, 2 months ago
Render targets (and dynamic vertex buffers, and a few other things) lose their data when the graphics device is reset. So another option is to listen for the GraphicsDevice.DeviceReset event and just regenerate your render target then.

(Note: you don't need RenderTargetUsage.PreserveContents in the code you have above).

This topic is closed to new replies.

Advertisement