addapt to changes in litegl in matrix