Previous graphic render may use shaders,so set pixel shader and vertex shader to NULL to force use fixed pipeline.