diff options
author | Topi Pohjolainen <topi.pohjolainen@intel.com> | 2013-07-09 11:14:16 +0300 |
---|---|---|
committer | Topi Pohjolainen <topi.pohjolainen@intel.com> | 2013-09-06 08:54:15 +0300 |
commit | 841659e21adf6b07b37f8a0d96c4b22bd87401cb (patch) | |
tree | 63b81a4d6b6a3670e773ccdca66d1f274b4e4a90 /glapi | |
parent | 8f00da07e6351961e3a308ceb891729f1d099426 (diff) |
glapi: fix parsing of extensions containing string "EGL_"
Category for 'EGLImageTargetTexture2DOES' becomes 'GL_OES_EGL_image'
instead of 'GL_OES_Eimage'.
v2 (Chad): replace first occurence explicitly
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
Diffstat (limited to 'glapi')
-rw-r--r-- | glapi/parse_glspec.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/glapi/parse_glspec.py b/glapi/parse_glspec.py index 0507f808d..2a8f73ae5 100644 --- a/glapi/parse_glspec.py +++ b/glapi/parse_glspec.py @@ -461,7 +461,8 @@ class Api(object): else: m = re.match(r'/\* (GL_.*) \*/', line) if m: - category = m.group(1).replace('GL_', '') + # replace only the first occurence of 'GL_' + category = m.group(1).replace('GL_', '', 1) m = re.match(r'GL_APICALL', line) if m: |