add additional GLES check for generateMipmap

+ checks availiability of glGenerateMipmap, based on OpenGL (core since version 3) or OpenGLES (core since version 2)
+ removes ofGetOpenGLVersionMajor() from GLES code path through #ifdef.