The GLFW_NO_WINDOW_CONTEXT error code happens when a window without a context is passed to a function that requires it to have one. This is deemed a programmer mistake, something that this Go package currently handles by loudly panicking so the mistake is fixed sooner.
Apply the same treatment to this error, which was previously missed and resulted in a "please report this in the Go package issue tracker" message being printed alongside the panic.
The
GLFW_NO_WINDOW_CONTEXT
error code happens when a window without a context is passed to a function that requires it to have one. This is deemed a programmer mistake, something that this Go package currently handles by loudly panicking so the mistake is fixed sooner.Apply the same treatment to this error, which was previously missed and resulted in a "please report this in the Go package issue tracker" message being printed alongside the panic.
Fixes #389.