Invalid pixel format in DirectX7
Posted on 2001-06-07
When I try to create a surface that can be used as a texture (can't remember the DDSCAPS constant offhand) in DirectX7 I am getting a DDERR_INVALIDPIXELFORMAT error.
The example code I have doesn't populate the pixelformat structure so neither did I. Am I doing something wrong? Should I use CreateTexture rather than CreateSurface with the texture caps?
I saw something in the docs that suggested you can't have a 16-bit texture. I changed my program to 32 bit and that didn't seem to help.
Thanks in advance,