Fixed incompatibility with ATI GPU's.