Advertisement

Problem with textures using DX7

Started by November 09, 1999 01:46 PM
0 comments, last by GameDev.net 25 years, 2 months ago
Hello guys,

My texture coordinates and texture surface are OK, but the problem is that if I set the texture using SetTexture, the EndScene function returns D3DERR_SCENE_END_FAILED
(If I set the texture to NULL that doesn't happen). This doesn't happen if I use the reference rasterizer, but the primitives are totally black.

What happens?!

Out of curiousity, are your texture surfaces dimensions a power of two? And did you create them with DDCAPS_TEXTURE? Some video cards also need them explicitly created in video memory (in my experience). If they aren't I usually get crazy amounts of errors in my debug stream. When I was using DX6.1, I also needed to specify DDCAPS2_TEXTUREMANAGE when I created the surface. I'm just learning DX7, but it seems (note: _seems_) even easier.
Hope this helps!

This topic is closed to new replies.

Advertisement