Sign in to follow this  

What shoud i create in OnD3D9CreateDevice/OnD3D9ResetDevice

This topic is 2192 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
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
[quote name='mhagain' timestamp='1326722242' post='4903228']
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.
[/quote]
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

This topic is 2192 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this