Fix building with Android NDK 10c/ API21

#520 Declined
Repository
Deleted repository
Branch
nowrangle-es (fffc27dee7ad)
Repository
ogre
Branch
default
Author
  1. Pavel Rojtberg
Reviewers
Description

Remove GLES3/gl3ext.h. There is no official GLES3/gl3ext.h - the ES3 extensions are also in GLES2/gl2ext.h (See here). Android NDK 10c+ enforces this by placing an empty gl3ext.h in the system include path. While one might work around this, the correct fix is to properly use gl2ext also for ES3.

Furthermore removes gleswIsSupported usage along the way and replaces it by GLES2Support::hasMinGLVersion. This change was already merged for GL3Plus in pull request #472 & pull request #473.

Comments (7)

  1. Pavel Rojtberg author

    unfortunately I have no access to an iOS device. Which part do you think will cause the break? We are still only using our own gl2ext.h and thus do not depend on any system headers. Ultimately all function pointers/ defines should be still the same as before - just sourcing gl2ext.h instead of the non-standard gl3ext.h.