comparison src/video/ataricommon/SDL_atarigl.c @ 3013:8cc00819c8d6

Reverted Bob's indent checkin
author Sam Lantinga <slouken@libsdl.org>
date Sat, 10 Jan 2009 21:50:26 +0000
parents 8f4ed5ec2b06
children
comparison
equal deleted inserted replaced
3012:7e30c2dc7783 3013:8cc00819c8d6
347 } else { 347 } else {
348 type = GL_UNSIGNED_BYTE; 348 type = GL_UNSIGNED_BYTE;
349 } 349 }
350 350
351 if (! 351 if (!
352 (_this->gl_data-> 352 (_this->
353 OSMesaMakeCurrent(gl_ctx, surface->pixels, type, surface->w, 353 gl_data->OSMesaMakeCurrent(gl_ctx, surface->pixels, type, surface->w,
354 surface->h))) { 354 surface->h))) {
355 SDL_SetError("Can not make OpenGL context current"); 355 SDL_SetError("Can not make OpenGL context current");
356 return -1; 356 return -1;
357 } 357 }
358 358
359 /* OSMesa draws upside down */ 359 /* OSMesa draws upside down */
510 if (recreatecontext) { 510 if (recreatecontext) {
511 SDL_AtariGL_Quit(this, SDL_FALSE); 511 SDL_AtariGL_Quit(this, SDL_FALSE);
512 512
513 gl_ctx = 513 gl_ctx =
514 _this->gl_data->OSMesaCreateContextExt(osmesa_format, 514 _this->gl_data->OSMesaCreateContextExt(osmesa_format,
515 _this->gl_config. 515 _this->
516 depth_size, 516 gl_config.depth_size,
517 _this->gl_config. 517 _this->
518 stencil_size, newaccumsize, 518 gl_config.stencil_size,
519 NULL); 519 newaccumsize, NULL);
520 520
521 if (gl_ctx) { 521 if (gl_ctx) {
522 gl_curformat = osmesa_format; 522 gl_curformat = osmesa_format;
523 gl_curdepth = _this->gl_config.depth_size; 523 gl_curdepth = _this->gl_config.depth_size;
524 gl_curstencil = _this->gl_config.stencil_size; 524 gl_curstencil = _this->gl_config.stencil_size;