equal
deleted
inserted
replaced
941 |
941 |
942 // we need to reset the gl context from the one created by SDL as we have our own drawing system |
942 // we need to reset the gl context from the one created by SDL as we have our own drawing system |
943 glMatrixMode(GL_PROJECTION); |
943 glMatrixMode(GL_PROJECTION); |
944 glLoadIdentity(); |
944 glLoadIdentity(); |
945 {$ELSE} |
945 {$ELSE} |
946 SDLPrimSurface:= SDL_SetVideoMode(cScreenWidth, cScreenHeight, cBits, flags); |
946 if not cOnlyStats then |
947 SDLTry(SDLPrimSurface <> nil, true); |
947 begin |
|
948 SDLPrimSurface:= SDL_SetVideoMode(cScreenWidth, cScreenHeight, cBits, flags); |
|
949 SDLTry(SDLPrimSurface <> nil, true); |
|
950 end; |
948 {$ENDIF} |
951 {$ENDIF} |
949 |
952 |
950 AddFileLog('Setting up OpenGL (using driver: ' + shortstring(SDL_VideoDriverName(buf, sizeof(buf))) + ')'); |
953 AddFileLog('Setting up OpenGL (using driver: ' + shortstring(SDL_VideoDriverName(buf, sizeof(buf))) + ')'); |
951 SetupOpenGL(); |
954 SetupOpenGL(); |
952 end; |
955 end; |