wjakob / nanogui

Minimalistic GUI library for OpenGL
Other
4.66k stars 608 forks source link

crashed for example3 in line " glfwSwapInterval(0);" #136

Closed wguo68 closed 8 years ago

wguo68 commented 8 years ago

It seems 0000000 in Call Stack.

junghyuncho commented 8 years ago

I think that example3 is missing the glad loader. Try to add the following lines after glfwMakeContextCurrent(window):

#if defined (NANOGUI_GLAD)
gladLoadGLLoader((GLADloadproc)glfwGetProcAddress);
#endif

I hope this helps!