regal/scripts/EmuExtensionQuery.py
Nigel Stewart 1d255f16da Remapping of ES 1.0 and ES 1.1 via GL_REGAL_ES1_0_compatibility and GL_REGAL_ES1_1_compatibility.
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.
2012-09-08 22:22:11 -05:00

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;' ]
},
}