aboutsummaryrefslogtreecommitdiffstats
path: root/code/unix
diff options
context:
space:
mode:
authoricculus <icculus@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-09-01 03:30:28 +0000
committericculus <icculus@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-09-01 03:30:28 +0000
commit5b4e589ee2bf09882da304a85d8ffae30a4a389d (patch)
treeb66eed8e6d93ac8d6d50a9f00a1f275576fac34c /code/unix
parent3313487e67711e58e6068d134b7efaa0fd3297d2 (diff)
downloadioquake3-aero-5b4e589ee2bf09882da304a85d8ffae30a4a389d.tar.gz
ioquake3-aero-5b4e589ee2bf09882da304a85d8ffae30a4a389d.zip
backed out broken patch.
git-svn-id: svn://svn.icculus.org/quake3/trunk@59 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/unix')
-rw-r--r--code/unix/sdl_glimp.c28
1 files changed, 12 insertions, 16 deletions
diff --git a/code/unix/sdl_glimp.c b/code/unix/sdl_glimp.c
index bea2a29..652daa2 100644
--- a/code/unix/sdl_glimp.c
+++ b/code/unix/sdl_glimp.c
@@ -636,22 +636,18 @@ static int GLW_SetMode( const char *drivername, int mode, qboolean fullscreen )
if (tcolorbits == 24)
sdlcolorbits = 8;
-
- /* Cameron Eure - Please don't set attributes unless we have a working visual. */
- if (vidscreen != NULL){
- SDL_GL_SetAttribute( SDL_GL_RED_SIZE, sdlcolorbits );
- SDL_GL_SetAttribute( SDL_GL_GREEN_SIZE, sdlcolorbits );
- SDL_GL_SetAttribute( SDL_GL_BLUE_SIZE, sdlcolorbits );
- SDL_GL_SetAttribute( SDL_GL_DEPTH_SIZE, tdepthbits );
- SDL_GL_SetAttribute( SDL_GL_STENCIL_SIZE, tstencilbits );
- SDL_GL_SetAttribute( SDL_GL_DOUBLEBUFFER, 1 );
-
- SDL_WM_SetCaption(WINDOW_CLASS_NAME, WINDOW_CLASS_NAME_BRIEF);
- SDL_ShowCursor(0);
- SDL_EnableUNICODE(1);
- SDL_EnableKeyRepeat(SDL_DEFAULT_REPEAT_DELAY, SDL_DEFAULT_REPEAT_INTERVAL);
- sdlrepeatenabled = qtrue;
-}
+ SDL_GL_SetAttribute( SDL_GL_RED_SIZE, sdlcolorbits );
+ SDL_GL_SetAttribute( SDL_GL_GREEN_SIZE, sdlcolorbits );
+ SDL_GL_SetAttribute( SDL_GL_BLUE_SIZE, sdlcolorbits );
+ SDL_GL_SetAttribute( SDL_GL_DEPTH_SIZE, tdepthbits );
+ SDL_GL_SetAttribute( SDL_GL_STENCIL_SIZE, tstencilbits );
+ SDL_GL_SetAttribute( SDL_GL_DOUBLEBUFFER, 1 );
+
+ SDL_WM_SetCaption(WINDOW_CLASS_NAME, WINDOW_CLASS_NAME_BRIEF);
+ SDL_ShowCursor(0);
+ SDL_EnableUNICODE(1);
+ SDL_EnableKeyRepeat(SDL_DEFAULT_REPEAT_DELAY, SDL_DEFAULT_REPEAT_INTERVAL);
+ sdlrepeatenabled = qtrue;
if (!(vidscreen = SDL_SetVideoMode(glConfig.vidWidth, glConfig.vidHeight, colorbits, flags)))
{