bool ST_Prim_Triangle::Draw()
{
targetWindow->GetWindowDevice()->SetRenderState(D3DRS_CULLMODE, D3DCULL_NONE); // this line
targetWindow->GetWindowDevice()->SetStreamSource(0, vertex_object, 0, sizeof(D3DVERTEX));
targetWindow->GetWindowDevice()->SetFVF(D3DFVF_XYZRHW|D3DFVF_DIFFUSE);
targetWindow->GetWindowDevice()->DrawPrimitive(D3DPT_TRIANGLELIST, 0, 1);
return true;
}
If that doesn't help, in PIX go to the end of a frame, select the color buffer window, right click on a pixel that is within the area the triangle should be drawn, and click "Debug Pixel". That should show each time the pixel shader was run, and if it failed the depth test, stencil test, etc.