Przeglądaj źródła

pause sentinel before UI dialog

Nicolas Cannasse 8 lat temu
rodzic
commit
17c3ea083d
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      libs/sdl/sdl/Sdl.hx

+ 1 - 0
libs/sdl/sdl/Sdl.hx

@@ -36,6 +36,7 @@ class Sdl {
 		var flags = new haxe.EnumFlags<hl.UI.DialogFlags>();
 		flags.set(IsError);
 		var msg = 'The application was unable to create an OpenGL context\nfor your $device video card.\nOpenGL $requiredGLMajor.$requiredGLMinor+ is required, please update your driver.';
+		#if (haxe_ver >= "3.4.1") sentinel.setPause(true); #end
 		hl.UI.dialog("OpenGL Error", msg, flags);
 		Sys.exit( -1);
 	}