Mercurial > sdl-ios-xcode
comparison src/video/xbios/SDL_xbios.c @ 1658:e49147870aac SDL-1.3
glSDL support
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 01 May 2006 06:58:33 +0000 |
parents | 8d9bb0cf2c2a |
children | 14717b52abc0 |
comparison
equal
deleted
inserted
replaced
1657:5b0805ceb50f | 1658:e49147870aac |
---|---|
572 SDL_memset(XBIOS_screensmem[0], 0, new_screen_size); | 572 SDL_memset(XBIOS_screensmem[0], 0, new_screen_size); |
573 | 573 |
574 XBIOS_screens[0]=(void *) (( (long) XBIOS_screensmem[0]+256) & 0xFFFFFF00UL); | 574 XBIOS_screens[0]=(void *) (( (long) XBIOS_screensmem[0]+256) & 0xFFFFFF00UL); |
575 | 575 |
576 #if SDL_VIDEO_OPENGL | 576 #if SDL_VIDEO_OPENGL |
577 if (flags & SDL_OPENGL) { | 577 if (flags & SDL_INTERNALOPENGL) { |
578 if (this->gl_config.double_buffer) { | 578 if (this->gl_config.double_buffer) { |
579 flags |= SDL_DOUBLEBUF; | 579 flags |= SDL_DOUBLEBUF; |
580 } | 580 } |
581 } | 581 } |
582 #endif | 582 #endif |
616 current->pixels = XBIOS_screens[0]; | 616 current->pixels = XBIOS_screens[0]; |
617 | 617 |
618 XBIOS_fbnum = 0; | 618 XBIOS_fbnum = 0; |
619 | 619 |
620 #if SDL_VIDEO_OPENGL | 620 #if SDL_VIDEO_OPENGL |
621 if (flags & SDL_OPENGL) { | 621 if (flags & SDL_INTERNALOPENGL) { |
622 if (!SDL_AtariGL_Init(this, current)) { | 622 if (!SDL_AtariGL_Init(this, current)) { |
623 XBIOS_FreeBuffers(this); | 623 XBIOS_FreeBuffers(this); |
624 SDL_SetError("Can not create OpenGL context"); | 624 SDL_SetError("Can not create OpenGL context"); |
625 return NULL; | 625 return NULL; |
626 } | 626 } |
627 | 627 |
628 modeflags |= SDL_OPENGL; | 628 modeflags |= SDL_INTERNALOPENGL; |
629 } | 629 } |
630 #endif | 630 #endif |
631 | 631 |
632 current->flags = modeflags; | 632 current->flags = modeflags; |
633 | 633 |