Add #ifndef USING_GLES2 since it only supports desktop OpenGL