support packed attributes in gl emulation code, perform restriding manually