mesa: Refactor handling of extension strings
Place GL, GLES1, and GLES2 extensions in a unified extension table. This allows one to enable, disable, and query the status of GLES1 and GLES2 extensions by name. When tested on Intel Ironlake, this patch did not alter the extension string [as given by glGetString(GL_EXTENSIONS)] for any API. Reviewed-by: Ian Romanick <idr@freedesktop.org> Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
bd33055ef4
commit
9b260c377f
File diff suppressed because it is too large
Load Diff
|
@ -2655,6 +2655,8 @@ struct gl_constants
|
|||
struct gl_extensions
|
||||
{
|
||||
GLboolean dummy; /* don't remove this! */
|
||||
GLboolean dummy_true; /* Set true by _mesa_init_extensions(). */
|
||||
GLboolean dummy_false; /* Set false by _mesa_init_extensions(). */
|
||||
GLboolean ARB_blend_func_extended;
|
||||
GLboolean ARB_copy_buffer;
|
||||
GLboolean ARB_depth_buffer_float;
|
||||
|
@ -2809,6 +2811,7 @@ struct gl_extensions
|
|||
GLboolean OES_EGL_image;
|
||||
GLboolean OES_draw_texture;
|
||||
GLboolean EXT_texture_format_BGRA8888;
|
||||
GLboolean extension_sentinel;
|
||||
/** The extension string */
|
||||
const GLubyte *String;
|
||||
/** Number of supported extensions */
|
||||
|
|
Loading…
Reference in New Issue