From: Chia-I Wu Date: Mon, 7 Nov 2011 21:45:20 +0000 (-0700) Subject: glws: Allow the attribute terminator to be specified X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=ba22603848891d875649bcddcc6d39da43b69429;p=apitrace 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. --- 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) {