aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-09-14 15:47:04 +0000
committertobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-09-14 15:47:04 +0000
commitd416ec72d686b15dc1d8083251b33cfe017213fc (patch)
treee3f963d83828ab9ae24ff45ca4ab85d3827d0f04
parenta40eb015f8dc43ee087bb8374e67c6a75eb9fbc6 (diff)
downloadusdx-d416ec72d686b15dc1d8083251b33cfe017213fc.tar.gz
usdx-d416ec72d686b15dc1d8083251b33cfe017213fc.tar.xz
usdx-d416ec72d686b15dc1d8083251b33cfe017213fc.zip
SDL_InitSubSystem() in Initialize3D() is now handled as critical error (to avoid crashes as aftereffects).
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1382 b956fd51-792f-4845-bead-9b4dfca2ff2c
-rw-r--r--src/base/UGraphic.pas3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/base/UGraphic.pas b/src/base/UGraphic.pas
index 6fa0aa8f..74088cd9 100644
--- a/src/base/UGraphic.pas
+++ b/src/base/UGraphic.pas
@@ -426,8 +426,7 @@ begin
Log.LogStatus('SDL_Init', 'UGraphic.Initialize3D');
if ( SDL_InitSubSystem(SDL_INIT_VIDEO) = -1 ) then
begin
- Log.LogError('SDL_Init Failed', 'UGraphic.Initialize3D');
- exit;
+ Log.LogCritical('SDL_Init Failed', 'UGraphic.Initialize3D');
end;
// load icon image (must be 32x32 for win32)