W want to use GL_CLAMP_TO_BORDER in my GL ES 3 app. Based on documentation (https://www.khronos.org/registry/OpenGL-Refpages/es3/html/glTexParameter.xhtml), it seems to be supported, however, on iOS this #define is not present. Is it named differently? Maybe some extension?

  • 1
    \$\begingroup\$ @shallowThought - not relevant for ES. \$\endgroup\$ – Maximus Minimus Apr 30 '17 at 13:50

GL_CLAMP_TO_BORDER became legal in GL ES 3.2 (link to specification), but may otherwise be available by one (or more) of the following extensions:

In the absence of one (or more) of these extensions, or if using an earlier version of GL ES, GL_CLAMP_TO_BORDER mode is not specified, and specifying a non-zero border value with your glTexImage parameters is documented to generate a GL_INVALID_VALUE error.

You are evidently working from an out-of-date header file, but you should also check that your hardware and driver are compatible.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.