Archived

This topic is now archived and is closed to further replies.

Drastick

Invalidate/Validate Textures?

Recommended Posts

my d3dDevice is not reseting after I added D3DXTEXTURE8s to the program. Is there anything you need to do to them before I run this code here pd3dxSprite->OnLostDevice(); pFont->InvalidateDeviceObjects(); pd3dDevice->Reset( &d3dpp ); pFont->RestoreDeviceObjects(); pd3dxSprite->OnResetDevice(); It works fine when I take D3DXTEXTURE8s out otherwise pd3dDevice->Reset( &d3dpp ); returns E_FAIL I increase the refrence count on the textures whatelse do I need to do before I can reset? Thanks.

Share this post


Link to post
Share on other sites
ok was not worth posting I figured out after a few seconds *sigh* I just used D3DPOOL_MANAGED so I don''t have to worry about it. However I STILL would like to know how you manage them if you are using D3DPOOL_DEFAULT.

Share this post


Link to post
Share on other sites