From ba22603848891d875649bcddcc6d39da43b69429 Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Mon, 7 Nov 2011 14:45:20 -0700 Subject: [PATCH] glws: Allow the attribute terminator to be specified This is needed to support EGL attribute lists. They have EGL_NONE, instead of zero, as the list terminator. --- glws.hpp | 4 ++-- 1 file 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) { -- 2.7.4