fix texgen state initialization
matrices are actually tracked locally
fix glGet with matrix stack depth