Skip to content

Commit a294cfb

Browse files
committed
Skip settle loop on Windows to prevent crash from early glfwPollEvents
1 parent 25e445a commit a294cfb

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

mode/CppMode.jar

0 Bytes
Binary file not shown.

src/Processing.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3504,7 +3504,8 @@ void PApplet::run(){
35043504
glClearColor(0.8f,0.8f,0.8f,1);
35053505
glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT);
35063506
glfwSwapBuffers(gWindow);
3507-
#ifndef __EMSCRIPTEN__
3507+
#ifndef _WIN32
3508+
// Settle loop for tiling WMs (i3 etc) -- not needed on Windows
35083509
for (int _settle = 0; _settle < 5; _settle++) {
35093510
glClearColor(0.8f,0.8f,0.8f,1);
35103511
glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT);

0 commit comments

Comments
 (0)