Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Init callback values produces a warning/error in editor #451

Open
corjohnson opened this issue Apr 15, 2020 · 1 comment
Open

Init callback values produces a warning/error in editor #451

corjohnson opened this issue Apr 15, 2020 · 1 comment

Comments

@corjohnson
Copy link

When trying to initialize glfw; I get a warning saying "Cannot move" for glfw::FAIL_ON_ERRORS. The code compiles and runs; but I was curious if there's a way to get rid of this visual error? Or if there's some piece I'm missing, since this code was copied from the docs.

image

@seofernando25
Copy link

You could try declaring a custom callback or even copy and pasting the FAIL_ON_ERROR callback

Hacky (and probably wrong) way
image

From source
image

On the other hand, if you don't want any callback you could just set the callback to None

image

Hope it helps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants