tided up AGLSL context