direct3d9: query the capabilities just before creating the device