Sign in to follow this  
Raeldor

All Textures in Use, Cannot Evict Texture

Recommended Posts

I am getting this error message in my program from Direct3D and I am not sure exactly what is causing it. My textures are created with D3DUSAGE_AUTOGENMIPMAP and D3DPOOL_MANAGED. Is this error coming fomr the graphics card because all the texture memory is full? I thought managed meant it swaped in and out as needed? FYI, I also use Lock to update the texture. Thanks

Share this post


Link to post
Share on other sites
I have an additional question to this. When a texture is set in a texture stage and then drawprimitive is called. When you use the same stage to set a different texture, I assume that if there is not enough video memory it will move the old texture out of video memory if you are using POOL_MANAGED?

Is this correct?

Also, I put an EvictManagedResources call in, which got rid of the problem. My question is, why isn't the direct3d managed pool code removing the old texture from the previous drawprimitive by itself if there is no room in video memory!?

Share this post


Link to post
Share on other sites

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