• ### Announcements

#### Archived

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

# 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.