Archived

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

Need help with CreateTexutre

This topic is 5978 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);
[\source]

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