From 871a4d76d73fcc2da3efd24491fe5b001341d268 Mon Sep 17 00:00:00 2001 From: d3cod3 Date: Sun, 6 Oct 2024 11:13:57 +0200 Subject: [PATCH] fixes some opengl glitches on some circumstances --- src/SplashScreen.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/SplashScreen.cpp b/src/SplashScreen.cpp index 00eefc8..ba10b6f 100644 --- a/src/SplashScreen.cpp +++ b/src/SplashScreen.cpp @@ -71,7 +71,8 @@ void SplashScreen::update(){ } if(ofGetElapsedTimeMillis()-startTime > 4800){ - splashWindow->setWindowShouldClose(); + //splashWindow->setWindowShouldClose(); + glfwHideWindow(splashWindow->getGLFWWindow()); } } @@ -107,5 +108,6 @@ void SplashScreen::draw(){ void SplashScreen::mousePressed(int x, int y, int button){ unusedArgs(x,y,button); - splashWindow->setWindowShouldClose(); + //splashWindow->setWindowShouldClose(); + glfwHideWindow(splashWindow->getGLFWWindow()); }