🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Problem with textures using DX7

Started by
0 comments, last by GameDev.net 24 years, 7 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?!

Advertisement
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