fix missing gl31 local variable