added code to the d3d10renderer