Name EXT_create_context_es2_profile Name Strings GLX_EXT_create_context_es2_profile Contact Jon Leech (jon 'at' alumni.caltech.edu) Piers Daniell (pdaniell 'at' nvidia.com) IP Status No known IP claims. Status Complete. Version Version 1, 2010/05/18 Number TBD Dependencies GLX 1.4 is required. GLX_ARB_create_context is required. GLX_ARB_create_context_profile is required. An OpenGL ES 2.0 implementation is required. Overview This extension allows creating an OpenGL ES 2.0 context. New Procedures and Functions None New Tokens Accepted as a bit in the attribute value for GLX_CONTEXT_PROFILE_MASK_ARB in <*attrib_list>: GLX_CONTEXT_ES2_PROFILE_BIT_EXT 0x00000004 (??? TBD but obvious) Additions to the OpenGL / WGL Specifications None. This specification is written for GLX. Additions to the GLX 1.4 Specification This extension modifies language specified in the GLX_ARB_create_context and GLX_ARB_create_context_profile extensions. In the description of glXCreateContextAttribsARB, replace the sentence "... If a version less than or equal to 3.0 is requested, the context returned may implement any of the following versions:" with "... If the version requested is 2.0, and the GLX_CONTEXT_ES2_PROFILE_BIT_EXT bit is set in the GLX_CONTEXT_PROFILE_MASK_ARB attribute (see below), then the context returned will implement OpenGL ES 2.0. This is the only way in which an implementation may request an OpenGL ES 2.0 context. Otherwise, if a version less than or equal to 3.0 is requested, the context returned may implement any of the following versions:" Replace the sentence "... If the requested OpenGL version is less than 3.2, GLX_CONTEXT_PROFILE_MASK_ARB is ignored and the functionality of the context is determined solely by the requested version." with "... If the GLX_CONTEXT_ES2_PROFILE_BIT_EXT bit is set, and the requested version is 2.0, then a context implementing OpenGL ES 2.0 is returned; otherwise, if the requested OpenGL version is less than 3.2, GLX_CONTEXT_PROFILE_MASK_ARB is ignored and the functionality of the context is determined solely by the requested version." Add prior to the sentence "The attribute name GLX_CONTEXT_FLAGS_ARB specifies a set of flag bits affecting the rendering context.": "If the OpenGL ES 2.0 profile is requested, then the context returned cannot implement additional functionality, including functionality defined only by the core or compatibility profiles, unless such functionality is defined by extensions that are themselves specified relative to OpenGL ES 2.0[*]. [*] Such functionality should have a corresponding extension specification in the OpenGL ES Registry. In some implementations, vendor extensions defined relative to OpenGL ES 2.0, but not yet added to the OpenGL ES Registry, may also be supported." Replace the bullet point starting "* If attribute GLX_CONTEXT_PROFILE_MASK_ARB has no bits set;..." with "* If attribute GLX_CONTEXT_PROFILE_MASK_ARB has no bits set; has any bits set other than GLX_CONTEXT_CORE_PROFILE_BIT_ARB, GLX_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB, or GLX_CONTEXT_ES2_PROFILE_BIT_EXT; has more than one of these bits set; or if the implementation does not supported the requested profile, then GLXBadProfileARB is generated." GLX Errors None GLX Protocol None Errors GLXBadProfileARB is generated is GLX_CONTEXT_PROFILE_MASK_ARB contains more than a single valid profile bit. New State None New Implementation Dependent State None Conformance Tests TBD Sample Code TBD Issues All non-window-system dependent issues described in the WGL_EXT_create_context_es2_profile extension specification apply equally to this extension. Revision History Version 1, 2010/05/18 - Recast the OpenGL ES 2.0 "profile" mechanism into a separate EXT layered on the ARB profiled context creation mechanism.