I didn't look pick through all your code. But here are a few thoughts.


I suspect your avbox_glTexImage2D() wrapper should actually call glTexImage2D on the GLES side.
Are you actually...