comparison src/video/SDL_video.c @ 1729:0ef52d56e8bb SDL-1.3

Fixed compile problems with new OpenGL API.
author Sam Lantinga <slouken@libsdl.org>
date Fri, 07 Jul 2006 10:39:33 +0000
parents 98a3207ddde8
children 0b1070f2f94d
comparison
equal deleted inserted replaced
1728:b1ee090d194f 1729:0ef52d56e8bb
251 _this->gl_config.accum_alpha_size = 0; 251 _this->gl_config.accum_alpha_size = 0;
252 _this->gl_config.stereo = 0; 252 _this->gl_config.stereo = 0;
253 _this->gl_config.multisamplebuffers = 0; 253 _this->gl_config.multisamplebuffers = 0;
254 _this->gl_config.multisamplesamples = 0; 254 _this->gl_config.multisamplesamples = 0;
255 _this->gl_config.accelerated = -1; /* not known, don't set */ 255 _this->gl_config.accelerated = -1; /* not known, don't set */
256 _this->gl_config.swap_control = -1; /* not known, don't set */
257 256
258 /* Initialize the video subsystem */ 257 /* Initialize the video subsystem */
259 if (_this->VideoInit(_this) < 0) { 258 if (_this->VideoInit(_this) < 0) {
260 SDL_VideoQuit(); 259 SDL_VideoQuit();
261 return -1; 260 return -1;
1969 _this->gl_config.multisamplesamples = value; 1968 _this->gl_config.multisamplesamples = value;
1970 break; 1969 break;
1971 case SDL_GL_ACCELERATED_VISUAL: 1970 case SDL_GL_ACCELERATED_VISUAL:
1972 _this->gl_config.accelerated = value; 1971 _this->gl_config.accelerated = value;
1973 break; 1972 break;
1974 case SDL_GL_SWAP_CONTROL:
1975 _this->gl_config.swap_control = value;
1976 break;
1977 default: 1973 default:
1978 SDL_SetError("Unknown OpenGL attribute"); 1974 SDL_SetError("Unknown OpenGL attribute");
1979 retval = -1; 1975 retval = -1;
1980 break; 1976 break;
1981 } 1977 }