From 6849d07fa827d28859e3172844baae78a2a86559 Mon Sep 17 00:00:00 2001 From: tobigun Date: Wed, 10 Sep 2008 17:01:50 +0000 Subject: 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 --- src/base/UGraphic.pas | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') 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(); -- cgit v1.2.3