Takescreenshot now also supports glVersion > 2