Mercurial > sdl-ios-xcode
comparison src/video/gem/SDL_gemvideo.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 | 782fd950bd46 |
comparison
equal
deleted
inserted
replaced
1657:5b0805ceb50f | 1658:e49147870aac |
---|---|
802 current->pixels = VDI_screen; | 802 current->pixels = VDI_screen; |
803 current->pitch = VDI_pitch; | 803 current->pitch = VDI_pitch; |
804 } | 804 } |
805 | 805 |
806 #if SDL_VIDEO_OPENGL | 806 #if SDL_VIDEO_OPENGL |
807 if (flags & SDL_OPENGL) { | 807 if (flags & SDL_INTERNALOPENGL) { |
808 if (!SDL_AtariGL_Init(this, current)) { | 808 if (!SDL_AtariGL_Init(this, current)) { |
809 GEM_FreeBuffers(this); | 809 GEM_FreeBuffers(this); |
810 SDL_SetError("Can not create OpenGL context"); | 810 SDL_SetError("Can not create OpenGL context"); |
811 return NULL; | 811 return NULL; |
812 } | 812 } |
813 | 813 |
814 modeflags |= SDL_OPENGL; | 814 modeflags |= SDL_INTERNALOPENGL; |
815 } | 815 } |
816 #endif | 816 #endif |
817 | 817 |
818 current->flags = modeflags; | 818 current->flags = modeflags; |
819 | 819 |