You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to run simple example and I want to use OpenGL version 4.
However, when I set :context-version-major 4 in with-window, GL crashes.
I have GLFW 3.3 installed.
Code which I'm running:
(defunmain ()
(glfw:with-init
(glfw:with-window (:width640:height480:title"CL-GLFW3":context-version-major4)
(setf%gl:*gl-get-proc-address*#'glfw:get-proc-address)
(gl:clear-color 00.511)
(loop until (glfw:window-should-close-p)
do ((lambda ()
(gl:clear :color-buffer)
(gl:color 1111)
(gl:rect 0011)))
do (glfw:swap-buffers)
do (glfw:poll-events)))))
Error report:
debugger invoked on a CL-OPENGL-BINDINGS:OPENGL-ERROR in thread
#<THREAD "main thread" RUNNING {10004F04C3}>:
OpenGL signalled (1282 . INVALID-OPERATION) from COLOR-4F.
Type HELP for debugger help, or (SB-EXT:EXIT) to exit from SBCL.
restarts (invokable by number or by possibly-abbreviated name):
0: [CONTINUE] Continue
1: [ABORT ] Exit debugger, returning to top level.
(CL-OPENGL-BINDINGS:CHECK-ERROR #<unavailable argument>)
source: (RESTART-CASE (ERROR 'OPENGL-ERROR :ERROR-CODE
(CONS ERROR-CODE
(CFFI:FOREIGN-ENUM-KEYWORD
'CL-OPENGL-BINDINGS:ENUM ERROR-CODE))
:ERROR-CONTEXT CONTEXT)
(CONTINUE NIL :REPORT "Continue"))
The text was updated successfully, but these errors were encountered:
I am trying to run simple example and I want to use OpenGL version 4.
However, when I set
:context-version-major 4
inwith-window
, GL crashes.I have GLFW 3.3 installed.
Code which I'm running:
Error report:
The text was updated successfully, but these errors were encountered: