fixed problem with big glDrawArrays (see bug 12141)