[PATCH 1/6] glws: Allow the attribute terminator to be specified

Chia-I Wu olvaffe at gmail.com
Tue Nov 8 15:48:38 PST 2011


This is needed to support EGL attribute lists.  They have EGL_NONE, instead of
zero, as the list terminator.
---
 glws.hpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/glws.hpp b/glws.hpp
index 47fdc7f..d6c2003 100644
--- 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) {
-- 
1.7.6.3



More information about the apitrace mailing list