Module: Mesa
Branch: master
Commit: 57b7c20ca59eb232cbd0a3a8368d603cbc06c215
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=57b7c20ca59eb232cbd0a3a8368d603cbc06c215

Author: Paul Berry <[email protected]>
Date:   Wed Nov  7 13:49:41 2012 -0800

glapi: skip padding in get_called_parameter_string

This bug is currently benign, since get_called_parameter_string() is
currently only used for functions that return true for
glx_function.has_different_protocol(), and none of those functions
include padding.  However, in order to implement marshalling of GL API
functions, we'll need to use get_called_parameter_string() far more
often.

Reviewed-by: Kenneth Graunke <[email protected]>

---

 src/mapi/glapi/gen/gl_XML.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/mapi/glapi/gen/gl_XML.py b/src/mapi/glapi/gen/gl_XML.py
index 227e9fc..3bbc794 100644
--- a/src/mapi/glapi/gen/gl_XML.py
+++ b/src/mapi/glapi/gen/gl_XML.py
@@ -802,6 +802,8 @@ class gl_function( gl_item ):
         comma = ""
 
         for p in self.parameterIterator():
+            if p.is_padding:
+                continue
             p_string = p_string + comma + p.name
             comma = ", "
 

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to