Fixed some GL issues.