Archived

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

Nytegard

Need help with CreateTexutre

Recommended Posts

Nytegard    839
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   
Guest Anonymous Poster
try using IDirect3DTexture8 instead of IDirect3DSurface8.

Share this post


Link to post
Share on other sites