Jump to content
  • Advertisement


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


Need help with CreateTexutre

This topic is 6198 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 can''t seem to get this to work for any reason whatsoever.
HRESULT returnvalue;
IDirect3DSurface8 *BitmapTexture;
returnvalue = d3dDevice->CreateTexture(32, 32, 0, 0, D3DFMT_X8R8G8B8, D3DPOOL_MANAGED, &BitmapTexture);

The problem is, returnvalue always returns with a value of D3DERR_INVALIDCALL.  I know the device is working correctly because if I use D3DXCreateTexture it works, but I don''t want to use the D3DX library.  

Share this post

Link to post
Share on other sites
Guest Anonymous Poster
try using IDirect3DTexture8 instead of IDirect3DSurface8.

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!