Advertize both GL_REGAL_ES1_0_compatibility and GL_REGAL_ES1_1_compatibility in the extension string. Has the side-effect (and benefit) of removing GL_REGAL_ES1_0_compatibility from the dispatch tables.
18 lines
746 B
Python
Executable file
18 lines
746 B
Python
Executable file
#!/usr/bin/python -B
|
|
|
|
formulae = {
|
|
'GetExtension' : {
|
|
'entries' : [ 'glGetExtensionREGAL' ],
|
|
'impl' : [ 'RegalAssert(_context->info);',
|
|
# '// Emulate GL_REGAL_extension_query, if necessary.',
|
|
# 'if (!_context->info->gl_regal_extension_query)',
|
|
'return _context->info->getExtension(ext) ? GL_TRUE : GL_FALSE;' ]
|
|
},
|
|
'IsSupported' : {
|
|
'entries' : [ 'glIsSupportedREGAL' ],
|
|
'impl' : [ 'RegalAssert(_context->info);',
|
|
# '// Emulate GL_REGAL_extension_query, if necessary.',
|
|
# 'if (!_context->info->gl_regal_extension_query)',
|
|
'return _context->info->isSupported(ext) ? GL_TRUE : GL_FALSE;' ]
|
|
},
|
|
}
|