Mercurial > sdl-ios-xcode
comparison src/video/ataricommon/SDL_atarigl.c @ 2735:204be4fc2726
Final merge of Google Summer of Code 2008 work...
Port SDL 1.3 to the Nintendo DS
by Darren Alton, mentored by Sam Lantinga
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 27 Aug 2008 15:10:03 +0000 |
parents | adf732f1f016 |
children | 99210400e8b9 |
comparison
equal
deleted
inserted
replaced
2734:dd25eabe441c | 2735:204be4fc2726 |
---|---|
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, | 518 gl_config.stencil_size, |
519 newaccumsize, 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; |