Fix Issue #194 - KHR_context_flush_control enums

This commit is contained in:
Nigel Stewart 2018-10-10 16:38:56 +10:00
parent 14e212406c
commit 6d5dabf870
5 changed files with 25 additions and 6 deletions

View File

@ -500,10 +500,6 @@ EOT
grep -v 'GL_NONE' $1/GL_KHR_context_flush_control > tmp
mv tmp $1/GL_KHR_context_flush_control
# Filter out GL_NONE enum from GL_EGL_KHR_context_flush_control
grep -v 'GL_NONE' $1/GL_EGL_KHR_context_flush_control > tmp
mv tmp $1/GL_EGL_KHR_context_flush_control
# Filter out CoverageModulation from NV_framebuffer_mixed_samples
# Superset of EXT_raster_multisample

View File

@ -158,8 +158,8 @@ my %regex = (
extname => qr/^[A-Z][A-Za-z0-9_]+$/,
none => qr/^\(none\)$/,
function => qr/^(.+) ([a-z][a-z0-9_]*) \((.+)\)$/i,
prefix => qr/^(?:[aw]?gl|glX)/, # gl | agl | wgl | glX
tprefix => qr/^(?:[AW]?GL|GLX)_/, # GL_ | AGL_ | WGL_ | GLX_
prefix => qr/^(?:[aw]?gl|glX|egl)/, # gl | agl | wgl | glX
tprefix => qr/^(?:[AW]?GL|GLX|EGL)_/, # GL_ | AGL_ | WGL_ | GLX_
section => compile_regex('^(', join('|', @sections), ')$'), # sections in spec
token => qr/^([A-Z0-9][A-Z0-9_x]*):?\s+((?:0x)?[0-9A-Fa-f]+(u(ll)?)?)(|\s[^\?]*)$/, # define tokens
types => compile_regex('\b(', join('|', keys %typemap), ')\b'), # var types

View File

@ -0,0 +1,8 @@
GLX_ARB_context_flush_control
https://www.khronos.org/registry/OpenGL/extensions/KHR/KHR_context_flush_control.txt
GLX_ARB_context_flush_control
GLX_CONTEXT_RELEASE_BEHAVIOR_ARB 0x2097
GLX_CONTEXT_RELEASE_BEHAVIOR_NONE_ARB 0x0000
GLX_CONTEXT_RELEASE_BEHAVIOR_FLUSH_ARB 0x2098

View File

@ -0,0 +1,7 @@
GL_KHR_context_flush_control
https://www.khronos.org/registry/OpenGL/extensions/KHR/KHR_context_flush_control.txt
GL_KHR_context_flush_control
GL_CONTEXT_RELEASE_BEHAVIOR 0x82FB
GL_CONTEXT_RELEASE_BEHAVIOR_FLUSH 0x82FC

View File

@ -0,0 +1,8 @@
WGL_ARB_context_flush_control
https://www.khronos.org/registry/OpenGL/extensions/KHR/KHR_context_flush_control.txt
WGL_ARB_context_flush_control
WGL_CONTEXT_RELEASE_BEHAVIOR_ARB 0x2097
WGL_CONTEXT_RELEASE_BEHAVIOR_NONE_ARB 0x0000
WGL_CONTEXT_RELEASE_BEHAVIOR_FLUSH_ARB 0x2098