• Advertisement
Sign in to follow this  

What shoud i create in OnD3D9CreateDevice/OnD3D9ResetDevice

This topic is 2197 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi!

I am using DXUT and dx9.
I have an issue with minimizing my fullscreen app and maximize it afterwards. My screen is black after maximizing...
I think that this is an issue with loosing de pd3dDevice, and so i tried to create/initialize everything that uses textures/buffer etc in OnD3D9ResetDevice. But my problem remains.

Share this post


Link to post
Share on other sites
Advertisement
Do the debug runtimes give you any useful information? You can enable them from the DirectX control panel in the start menu -> DirectX SDK -> Tools.

Share this post


Link to post
Share on other sites
Most likely cause is that you used GetSurfaceLevel (or GetBackBuffer/GetRenderTarget) but neglected to Release the returned surface afterwards.

A second possibility is that you have some D3DX objects - Sprite, Font or Effect are candidates here - which you haven't called OnLostDevice on.

Share this post


Link to post
Share on other sites

Most likely cause is that you used GetSurfaceLevel (or GetBackBuffer/GetRenderTarget) but neglected to Release the returned surface afterwards.

A second possibility is that you have some D3DX objects - Sprite, Font or Effect are candidates here - which you haven't called OnLostDevice on.

Also Buffers :)

I´ve solved it now. I deleted my camera class in the OnD3D9LostDevice but created it on OnD3D9CreateDevice.
Thank you for your replies! ;)

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement