Skip to content

Commit 0ef2e09

Browse files
committed
Set glewExperimental=GL_TRUE before glewInit to fix null function pointer crash
1 parent 55f16fa commit 0ef2e09

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/Processing.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3405,6 +3405,7 @@ void PApplet::run(){
34053405
glfwSwapBuffers(w);
34063406
});
34073407
glfwMakeContextCurrent(gWindow);
3408+
glewExperimental = GL_TRUE; // required for core/compat profiles to load all function pointers
34083409
GLenum glewErr = glewInit();
34093410
if(glewErr != GLEW_OK){
34103411
#ifdef _WIN32

0 commit comments

Comments
 (0)