Moved code from Terrain.cpp to DxManagerDeferred.cpp and made it thread safe.

Signed-off-by: Strakas <reetopps6@hotmail.com>
Merge branch 'master' of https://github.com/Malow/NDYGFX