]> git.cworth.org Git - apitrace/commitdiff
glws: Allow the attribute terminator to be specified
authorChia-I Wu <olvaffe@gmail.com>
Mon, 7 Nov 2011 21:45:20 +0000 (14:45 -0700)
committerJosé Fonseca <jose.r.fonseca@gmail.com>
Thu, 17 Nov 2011 15:50:26 +0000 (15:50 +0000)
This is needed to support EGL attribute lists.  They have EGL_NONE, instead of
zero, as the list terminator.

glws.hpp

index 47fdc7f40729f24e4a7905a2a914b3877ffbe8e3..d6c2003e0c90ae873c0743057725214152017e3b 100644 (file)
--- a/glws.hpp
+++ b/glws.hpp
@@ -59,8 +59,8 @@ public:
         add(pvalue);
     }
 
-    void end(void) {
-        add(0);
+    void end(T terminator = 0) {
+        add(terminator);
     }
 
     operator T * (void) {