Fixing segfaults by correctly enabling/disabling GL ARRAYs