TFactor is a DWORD value, not a texture. Maybe that's the problem.