d3dx9: Allow setting texture to NULL.