libigl icon indicating copy to clipboard operation
libigl copied to clipboard

GLVerion not available on windows

Open alecjacobson opened this issue 3 years ago • 3 comments

https://github.com/libigl/libigl/blob/2869f9862926ef6e6acc5e2fa0b51f8fd165e22f/include/igl/opengl/glfw/Viewer.cpp#L187

I have a fragile windows set up for testing. Would be nice to have someone confirm this is an issue (in debug mode).

alecjacobson avatar May 01 '22 23:05 alecjacobson

What is the issue here?

jdumas avatar May 02 '22 02:05 jdumas

I also encountered this error in debug mode.It could be an oversight.

glGetIntegerv(GL_MAJOR_VERSION, &major); glGetIntegerv(GL_MINOR_VERSION, &minor); printf("OpenGL Version %d.%d loaded\n", major, minor);

monkeygame avatar Jun 07 '22 02:06 monkeygame

Recurring issue: "GLVersion undeclared identifier" is still unresolved for windows

hjforsythe-rlp avatar Oct 05 '22 19:10 hjforsythe-rlp

Having the same issue myself now... was this solved?

lukkio88 avatar Mar 07 '23 07:03 lukkio88

@lukkio88 you could try replacing that offending line with @monkeygame 's

glGetIntegerv(GL_MAJOR_VERSION, &major); glGetIntegerv(GL_MINOR_VERSION, &minor); printf("OpenGL Version %d.%d loaded\n", major, minor);

maybe that fixes it. I believe this is some issue with GLAD on Windows that doesn't seem to happen elsewhere.

alecjacobson avatar Mar 07 '23 14:03 alecjacobson