Lots of changes to D3D11 and OGL devices