lib/glesv2: fix signature of glTexImage2D and accept any pointer to pixels data