Closed ghost closed 8 years ago
GLEW is not supported here, you will be on your own if you make these kinds of changes.
It is safe to use OpenGL functions without GLEW? GLAD has already initialized them?
You forgot to erase the mention about GLEW here: "context creation and event handling, GLEW to use OpenGL 3.x Windows," (Description of your project)
And here: "nanogui/opengl.h -- Pulls in OpenGL, GLEW (if needed), GLFW, and NanoVG header files" (opengl.h)
Yes, nanogui actually used GLEW up to maybe about three or for months ago, but GLAD is generally better for every platform (read less of a headache on Windows).
Both initialize the OpenGL context, so you cannot mix the two. Or if you can... You really shouldn't ;)
Thanks for pointing out the outdated documentation. I'm actually spearheading that front right now, there's a bug in the test repo I'm working on that I can't track down. There's an unknown crash when something is called params
that I think at this point I'm going to just ignore and state clearly that it breaks.
I'll make sure to update the docs to remove any mention of GLEW.
When I try to manually initialize GLEW I get an error:
fatal error C1189: #error: OpenGL header already included, remove this include, glad already provides it
If I understand correctly, GLAD is an alternative for GLEW. But I preffer GLEW. What should I do to make things work as expected?
Some code with this error:
Also It is possible to redraw window content while its size is changing? Now I do for this a very dirty trick:
P.S.: Sorry if my english level is bad. I am russian, english is not my native language... I hope you understand me?