Jump to content
  • Advertisement
Sign in to follow this  
Axiverse

Locking a texture

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

I'm trying to lock a texture, but it fails unless the texture is dynamic. Why can't it be like vertex buffers and allow one lock? Or is this some other error?

Share this post


Link to post
Share on other sites
Advertisement
Quote:
From DX SDK:
Textures created with D3DPOOL_DEFAULT are not lockable. Textures created in video memory are lockable when created with USAGE_DYNAMIC.

It's intentional.

You can use UpdateSurface or the D3DXLoadSurfaceFrom* methods instead, or use Managed Pool resources, which is usually a good idea anyways.

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!