Skip to main content
GameDev.net gamedev.net
🔒 Locked

Invalidate/Validate Textures?

Started by Drastick Oct 21, 2003 at 2:15 AM 0 replies 250+ views
Original Post
Drastick
Drastick
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.
Drastick
Drastick
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.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.