Implemented D3DContext resizing.