Refactor smalltex/tinytex EOSD optimization in vo_gl