glGetTextLevelParameteriv() isn't available on OpenGL ES 2.0. (I don't know of a good, portable way to read texture width/height under ES2.)