Browse Source

Check the program variable.

main
Walantis Giosis 4 years ago
parent
commit
ec4f2e7fda
  1. 2
      examples/cairo-gl.lisp

2
examples/cairo-gl.lisp

@ -47,7 +47,7 @@ void main() {
(compile-and-check-shader v-shader *vertex-shader*)
(compile-and-check-shader f-shader *fragment-shader*)
(let ((program (gl:create-program)))
(if (zerop 0)
(if (zerop program)
(error "Error creating program")
(progn
(gl:attach-shader program v-shader)

Loading…
Cancel
Save