minor fixes, other merge of render device previous code
Merge branch 'D3D9_D3D11_R&D' of https://github.com/Lopuska/Torque3D.git