Add workaround for ATI cards.