log-gl-errors ( -- ) - Factor Documentation (original) (raw)

log-gl-errors ( -- )
OpenGL error reporting

Prev: throw-gl-errors ( -- )
Next: clear-gl-error-log ( -- )

Vocabulary
opengl.annotations

Word description
Annotate every OpenGL function to log using log-gl-error if the function results in an error. Use reset-gl-functions to reverse this operation.

See also
throw-gl-errors, gl-error, log-gl-error, clear-gl-error-log, reset-gl-functions

Definition

USING: kernel ;

IN: opengl.annotations

: log-gl-errors ( -- )
[ [ log-gl-error ] curry compose ] annotate-gl-functions ;