Jump to content
  • Advertisement

Archived

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

gdpost778

DirectX9 loading texture crash

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

Hi All, D3DXCreateTextureFromResourceEx is crashing on me since i''ve upgraded from the directX 8 SDK to the directX 9 SDK, Any idea? thx, gdpost778.

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
is that function returning?
what is the return value?

Share this post


Link to post
Share on other sites
Had the same problem in Managed DirectX 9!
The solution was to create the texture in the MANAGED pool, perhaps that helps here too!

Have fun
Bunnz

http://www.bunnz.com

Share this post


Link to post
Share on other sites
the crash occurs into D3DXFindClosestDeviceFormat(), which apparently and internal (not public) function of D3DX.

What do you mean by "managed pool"? I''m using the following call:

D3DXCreateTextureFromResourceEx(device, _Module.GetModuleInstance(), MAKEINTRESOURCE(res_id), D3DX_DEFAULT, D3DX_DEFAULT, D3DX_DEFAULT, 0, D3DFMT_A8R8G8B8, D3DPOOL_MANAGED, filter, filter,D3DCOLOR_RGBA(0,128,128,255), NULL, NULL, texture )

so i''m using the D3DPOOL_MANAGED parameter.


Share this post


Link to post
Share on other sites
This problem is probably dependent on what card/driver you are using. You should send a description of the problem, along with the description of your system from DXDiag, to directx@microsoft.com.

xyzzy

Share this post


Link to post
Share on other sites

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