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?!