I have two users for whom a call to (gl:get-integer :num-extensions) errors with: OpenGL signaled (1280 . iNVLID-ENUM) from GET-INTGER-V
The only thing they both have in common it seems is OSX Here is copied from one of their slime error buffers.
OpenGL signalled (1280 . INVALID-ENUM) from GET-INTEGER-V. [Condition of type CL-OPENGL-BINDINGS:OPENGL- ERROR]
Restarts: 0: [CONTINUE] Continue 1: [RETRY] Retry SLIME REPL evaluation request. 2: [*ABORT] Return to SLIME's top level. 3: [ABORT] Abort thread (#<THREAD "repl-thread" RUNNING {1003448023}>)
Backtrace: 0: (CL-OPENGL-BINDINGS:CHECK-ERROR #<unavailable argument>) 1: (CL-OPENGL:GET-INTEGER :NUM-EXTENSIONS 1) 2: (CEPL::GET-GL-EXTENSIONS) 3: (CEPL::CEPL-POST-CONTEXT-INITIALIZE) 4: (CEPL:REPL 640 480) 5: (SB-INT:SIMPLE-EVAL-IN-LEXENV (CEPL:REPL) #<NULL-LEXENV>) 6: (EVAL (CEPL:REPL)) 7: (SWANK::EVAL-REGION "(cepl:repl) ..)
It seems from here https://developer.apple.com/library/mac/releasenotes/general/macosxlionapidi... this enum was only added in OsX 10.7 (Lion) but at least one of these folks is using mavericks which has 4.2 support (so I'm told :))
Any idea what would be causing this?
Baggers
On Thu, Oct 24, 2013 at 4:31 AM, Chris Bagley chris.bagley@gmail.comwrote:
I have two users for whom a call to (gl:get-integer :num-extensions) errors with: OpenGL signaled (1280 . iNVLID-ENUM) from GET-INTGER-V
I think :num-extensions requires a GL 3.0+ context, so in general you should check that before using it.
The only thing they both have in common it seems is OSX
It seems from here https://developer.apple.com/library/mac/releasenotes/general/macosxlionapidi... this enum was only added in OsX 10.7 (Lion) but at least one of these folks is using mavericks which has 4.2 support (so I'm told :))
On OSX, I think you need to specifically request 3.0+ when creating the context, or it will only give you a 2.x context since it actually separates out the core profile. (On other platforms I think NVidia and AMD drivers will default to the highest version it supports, but enable the backwards compatibility extension or profile or whatever it is)
Fantastic, I will try this out tonight. Now I know what to google for the results all seem to be of the same opinion. Cheers
On 24 October 2013 15:30, Bart Botta 00003b@gmail.com wrote:
On Thu, Oct 24, 2013 at 4:31 AM, Chris Bagley chris.bagley@gmail.comwrote:
I have two users for whom a call to (gl:get-integer :num-extensions) errors with: OpenGL signaled (1280 . iNVLID-ENUM) from GET-INTGER-V
I think :num-extensions requires a GL 3.0+ context, so in general you should check that before using it.
The only thing they both have in common it seems is OSX
It seems from here https://developer.apple.com/library/mac/releasenotes/general/macosxlionapidi... this enum was only added in OsX 10.7 (Lion) but at least one of these folks is using mavericks which has 4.2 support (so I'm told :))
On OSX, I think you need to specifically request 3.0+ when creating the context, or it will only give you a 2.x context since it actually separates out the core profile. (On other platforms I think NVidia and AMD drivers will default to the highest version it supports, but enable the backwards compatibility extension or profile or whatever it is)
cl-opengl-devel@common-lisp.net