aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-09-10 17:01:50 +0000
committertobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-09-10 17:01:50 +0000
commit6849d07fa827d28859e3172844baae78a2a86559 (patch)
tree495f32887905236f53ff173acbdae79dca0d529a
parent407de225f30f95e0d8724d7ed6e204641f121c69 (diff)
downloadusdx-6849d07fa827d28859e3172844baae78a2a86559.tar.gz
usdx-6849d07fa827d28859e3172844baae78a2a86559.tar.xz
usdx-6849d07fa827d28859e3172844baae78a2a86559.zip
Halt if the initial SDL_SetVideoMode() in InitializeScreen() call fails
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1359 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 2432503c..e8312300 100644
--- a/src/base/UGraphic.pas
+++ b/src/base/UGraphic.pas
@@ -598,8 +598,7 @@ begin
if (screen = nil) then
begin
- Log.LogError('SDL_SetVideoMode Failed', 'Initialize3D');
- exit;
+ Log.LogCritical('SDL_SetVideoMode Failed', 'Initialize3D');
end;
LoadOpenGLExtensions();