Fix compilation on VS2013, crash on ATI cards.