[Mesa-dev] [PATCH 10/18] mapi/new: remove duplicate GLvoid/void substitution

Emil Velikov emil.l.velikov at gmail.com
Wed Nov 21 12:04:07 UTC 2018


From: Emil Velikov <emil.velikov at collabora.com>

We already do it a few lines above - drop the duplicate.

Note that for consistency sake, we keep the substitution since the GL
API is a mixed bad - some use GLvoid while others a normal void.

We might want to merge this back in GLVND.

Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
 src/mapi/new/genCommon.py | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/mapi/new/genCommon.py b/src/mapi/new/genCommon.py
index 29cede96939..5ada13759bb 100644
--- a/src/mapi/new/genCommon.py
+++ b/src/mapi/new/genCommon.py
@@ -236,7 +236,6 @@ def _fixupTypeName(typeName):
     # Remove the vendor suffixes from types that have a suffix-less version.
     rv = re.sub(r"\b(GLhalf|GLintptr|GLsizeiptr|GLint64|GLuint64)(?:ARB|EXT|NV|ATI)\b", r"\1", rv)
 
-    rv = re.sub(r"\bGLvoid\b", "void", rv)
     rv = re.sub(r"\bGLDEBUGPROCKHR\b", "GLDEBUGPROC", rv)
 
     # Clear out any leading and trailing whitespace.
-- 
2.19.1



More information about the mesa-dev mailing list