POSITIVE-MENTAL-ATTITUDE 8 years ago
parent
commit
c38f3964d7
1 changed files with 11 additions and 2 deletions
  1. 11 2
      src/Triangles.cpp

+ 11 - 2
src/Triangles.cpp

@@ -280,8 +280,17 @@ void Triangles::load(int stateType)
 	_window.lockFramerate(false);
 	
 	_current->refresh();
-	_window.recreate();
 	
+	/**
+	 * I don't know why, but for some reason this crap mswindows blackscreens the window
+	 * if it isn't recreated
+	 * on the following conditions:
+	 */
+	#ifndef __linux__
+	if(stateType == State::Menu && !_variables.shaders)
+		_window.recreate();
+	#endif
+
 	Echo::debug("Done.");
 }
 
@@ -292,7 +301,7 @@ int Triangles::run()
 	
 	if(_context.running)
 	{
-		Echo::out(Echo::Empty, "Triangles version 0.0.1");
+		Echo::out(Echo::Empty, "Triangles version 0.0.2");
 		Echo::out(Echo::Empty, "Copyright (C) 2016 POSITIVE MENTAL ATTITUDE");
 		Echo::out(Echo::Empty, "This program comes with ABSOLUTELY NO WARRANTY;");
 		Echo::out(Echo::Empty, "This is free software, and you are welcome to redistribute it");