runtime translation from GL 1.x to GL ES 1.x