[cl-opengl-devel] push-attrib / pop-attrib
![](https://secure.gravatar.com/avatar/17a1b57faf8fcbfd878d61c8553715d5.jpg?s=120&d=mm&r=g)
Hej cl-opengl developers, I'm trying to use push-attrib, but unfortunately it doesn't work. (gl:push-attrib :current-bit) -+ Errors (1) `-- (in macroexpansion of (CL-OPENGL:PUSH-ATTRIB :CURRENT-BIT)) (hint: For more precise location, try *BREAK-ON-SIGNALS*.) Unknown CFFI type: CL-OPENGL::SERVER-ATTRIBUTES. ;; external (defun push-attrib (&rest attributes) (declare (dynamic-extent attributes)) (%gl:push-attrib (make-bitfield 'server-attributes attributes))) (define-compiler-macro push-attrib (&whole form &rest attributes) (if (every #'keywordp attributes) `(%gl:push-attrib ,(make-bitfield 'server-attributes attributes)) form)) There's no enum called server-attributes anywhere in the current HEAD. Another problem is that pop-attrib is exported, but is never defined (only the defcfun function (%pop-attrib), no high-level/wrapper method). Any hints? Thanks. kind regards, Bastian
![](https://secure.gravatar.com/avatar/326b108ffcc42f27628703b0c11ed239.jpg?s=120&d=mm&r=g)
Hello, First off, sorry for the late reply. On Fri, May 16, 2008 at 2:07 PM, Bastian Müller <turbo24prg@web.de> wrote:
I'm trying to use push-attrib, but unfortunately it doesn't work. [...] Another problem is that pop-attrib is exported, but is never defined
Thanks for the report. I believe I have pushed fixes for these issues, but I haven't tested them properly. Let me know if they work for you. -- Luís Oliveira http://student.dei.uc.pt/~lmoliv/
participants (2)
-
Bastian Müller
-
Luís Oliveira