Pass the proper length to glDrawArrays.