From: José Fonseca <jose.r.fonseca@gmail.com>
Date: Thu, 1 Dec 2011 09:30:12 +0000 (+0000)
Subject: Make gltxt.py obbey prefix option for types too.
X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=382d662aabebe85e8bc6f941eafc76454be24577;p=apitrace

Make gltxt.py obbey prefix option for types too.
---

diff --git a/specs/scripts/gltxt.py b/specs/scripts/gltxt.py
index 4ce9232..c1a0aea 100755
--- a/specs/scripts/gltxt.py
+++ b/specs/scripts/gltxt.py
@@ -187,7 +187,7 @@ class TxtParser(LineParser):
         if token == 'void':
             type = 'Void'
         else:
-            type = 'GL' + token
+            type = self.prefix.upper() + token
         while self.tokens[0] == '*':
             type = 'OpaquePointer(%s)' % type
             self.tokens.pop(0)