D3D and CUDA

Hello All. I try to draw textured triangle. If i do not use cuda i get it. But after calling cudaD3D9RegisterResource() my triangle disappears. What can it be? Thank You Much!