Fixed texture rendering issues.