[Piglit] [v8 01/13] glapi: fix parsing of extensions containing string "EGL_"

Topi Pohjolainen topi.pohjolainen at intel.com
Wed Jul 10 01:24:00 PDT 2013


Category for 'EGLImageTargetTexture2DOES' becomes 'GL_OES_EGL_image'
instead of 'GL_OES_Eimage'.

Signed-off-by: Topi Pohjolainen <topi.pohjolainen at intel.com>
---
 glapi/parse_glspec.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/glapi/parse_glspec.py b/glapi/parse_glspec.py
index 9919fce..1d7c5a4 100644
--- a/glapi/parse_glspec.py
+++ b/glapi/parse_glspec.py
@@ -461,9 +461,9 @@ class Api(object):
             elif re.match(r'/\* OpenGL ES 3.0 \*/', line):
                 category = 'GL_ES_VERSION_3_0'
             else:
-                m = re.match(r'/\* (GL_.*) \*/', line)
+                m = re.match(r'/\*( GL_.*) \*/', line)
                 if m:
-                    category = m.group(1).replace('GL_', '')
+                    category = m.group(1).replace(' GL_', '')
 
             m = re.match(r'GL_APICALL', line)
             if m:
-- 
1.8.1.2



More information about the Piglit mailing list