Browse Source

-disabled thread model 2 for the time being, crashes on linux without reason, fixes #1482

Juan Linietsky 10 years ago
parent
commit
b312df0561
1 changed files with 3 additions and 0 deletions
  1. 3 0
      main/main.cpp

+ 3 - 0
main/main.cpp

@@ -640,6 +640,9 @@ Error Main::setup(const char *execpath,int argc, char *argv[],bool p_second_phas
 	GLOBAL_DEF("display/test_height",0);
 	GLOBAL_DEF("display/test_height",0);
 	if (rtm==-1) {
 	if (rtm==-1) {
 		rtm=GLOBAL_DEF("render/thread_model",OS::RENDER_THREAD_SAFE);
 		rtm=GLOBAL_DEF("render/thread_model",OS::RENDER_THREAD_SAFE);
+		if (rtm>=1) //hack for now
+			rtm=1;
+
 	}
 	}
 
 
 	if (rtm>=0 && rtm<3)
 	if (rtm>=0 && rtm<3)