This makes no sense to me, in particular,
if(D3DUSAGE_RENDERTARGET)
is a no-op (D3DUSAGE_RENDERTARGET is simply a non-zero number, so the if always evaluates to true).
Yeah I'm aware. Could've cleaned it up but wanted to push it before I headed... Seeing your changes on it is a facepalm moment for me, but then again... that's what I get for programming deep into the night.
This makes no sense to me, in particular, if(D3DUSAGE_RENDERTARGET) is a no-op (D3DUSAGE_RENDERTARGET is simply a non-zero number, so the if always evaluates to true).