3b / cl-opengl

cl-opengl is a set of CFFI bindings to the OpenGL, GLU and GLUT APIs.
http://common-lisp.net/project/cl-opengl/
Other
279 stars 59 forks source link

Float trap masking is broken on CCL #84

Closed borodust closed 5 years ago

borodust commented 5 years ago
Incorrect keyword arguments in (:UNDERFLOW
                                NIL
                                :OVERFLOW
                                NIL
                                :INEXACT
                                NIL
                                :INVALID
                                NIL
                                :DIVIDE-BY-ZERO
                                NIL
                                :DENORMALIZED-OPERAND
                                NIL) .
   [Condition of type CCL::SIMPLE-PROGRAM-ERROR]

("Clozure Common Lisp" "Version 1.11.5/v1.11.5 (LinuxX8664)")

(cl:pushnew :cl-opengl-no-masked-traps cl:*features*) solves the problem, but another small gotcha is that one would need to also manually trigger recompilation of cl-opengl by touching cl-openg.asd or other means (clearing caches, forcing with asdf).

borodust commented 5 years ago

Relevant bit of CCL docs: https://ccl.clozure.com/manual/chapter4.11.html#f_set-fpu-mode

borodust commented 5 years ago

Apparently, it was fixed in :float-features but didn't make it to quicklisp dist yet.