Jump to content
  • Advertisement
Sign in to follow this  

Which pool to use with CreateOffscreenPlainSurface?

This topic is 2609 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

Just turned the DirectX Debug output thing on and it's telling me that D3DPOOL_MANAGED isn't allowed for LPDIRECT3DDEVICE9::CreateOffscreenPlainSurface. I had a look at this on MSDN and it says to use SCRATCH or DEFAULT although the DX debug says SYSTEMMEM is fine also.

I've been using MANAGED this whole time and haven't had a problem with it but I suppose I'd better change it if DX is telling me to.

Anyway, which one do you think I should use? I've tried SCRATCH and SYSTEMMEM and they both work fine with the code I have, using DEFAULT causes errors when the device is lost (switching to full screen, locking the computer etc.) so I'd rather not have to use that because it means having to recreate all the textures ect.
So should I use SCRATCH or SYSTEMMEM? I've read up on both and don't really understand the difference, neither seem to have a difference when used.

Thanks, Mal cool.gif

Share this post

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

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!