Updated gl state with proper initializations.