Jump to content
  • Advertisement

Archived

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

bentry

D3DXCreateTextureFromFile dosn't return?

This topic is 5318 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 am trying to move the 6th tutorial at andypike.com to Dx9. The original version in dx8 is quite ok, but I can't create Texture in my Dx9 version. URL: http://www.andypike.com/tutorials/directx8/006.asp The case is: 1. The program compile very well, no warning. 2. When runing the program with texture file in the exe's path, D3DXCreateTextureFromFile dosn't return, and then the program crash. The debuger got the err message: [356] Direct3D9: (ERROR) :iSwapChain is out of range. What's that means? 3. When remove the texture file in the exe's path. Though there is no texture mapped on the cuboids, the program can runs quite well. 4. I even try the D3DXCreateTextureFromFileEx function in case 2 & 3, things is the same. 5. I try the Device->CreateTexture() , It can create a empty Texture object. Some one can help me? [edited by - bentry on March 26, 2004 1:00:35 AM]

Share this post


Link to post
Share on other sites
Advertisement

  • 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!