Skip to content

Commit 61c8fae

Browse files
committed
Processing.cpp: remove duplicate dead gWindow null check after glfwSetWindowRefreshCallback
1 parent d589c61 commit 61c8fae

4 files changed

Lines changed: 0 additions & 8 deletions

File tree

dist/processing-cpp-cmake.zip

-50 Bytes
Binary file not shown.
-50 Bytes
Binary file not shown.

mode/CppMode.jar

266 Bytes
Binary file not shown.

src/Processing.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3094,14 +3094,6 @@ void PApplet::run(){
30943094
}
30953095
glfwSwapBuffers(w);
30963096
});
3097-
if(!gWindow){
3098-
#ifdef _WIN32
3099-
MessageBoxA(NULL, "Window creation failed.\nCheck that your GPU supports OpenGL 2.0+", "processing-cpp Error", MB_OK|MB_ICONERROR);
3100-
#else
3101-
fprintf(stderr, "[ERR] Window creation failed. Check OpenGL 2.0+ support.\n");
3102-
#endif
3103-
glfwTerminate(); return;
3104-
}
31053097
glfwMakeContextCurrent(gWindow);
31063098
GLenum glewErr = glewInit();
31073099
if(glewErr != GLEW_OK){

0 commit comments

Comments
 (0)