Revert Texture2D change from upstream. Sigh.