Mercurial > sdl-ios-xcode
comparison src/video/xbios/SDL_xbios.c @ 980:7d6f8804a293
OSMesa draws upside down
author | Patrice Mandin <patmandin@gmail.com> |
---|---|
date | Sat, 20 Nov 2004 20:47:52 +0000 |
parents | c9d1ade1fb0b |
children | 475166d13b44 |
comparison
equal
deleted
inserted
replaced
979:c9d1ade1fb0b | 980:7d6f8804a293 |
---|---|
990 if (!OSMesaMakeCurrent(XBIOS_ctx, surface->pixels, type, surface->w, surface->h)) { | 990 if (!OSMesaMakeCurrent(XBIOS_ctx, surface->pixels, type, surface->w, surface->h)) { |
991 SDL_SetError("Can not make OpenGL context current"); | 991 SDL_SetError("Can not make OpenGL context current"); |
992 return -1; | 992 return -1; |
993 } | 993 } |
994 | 994 |
995 /* OSMesa draws upside down */ | |
996 OSMesaPixelStore(OSMESA_Y_UP, 0); | |
997 | |
995 return 0; | 998 return 0; |
996 } | 999 } |
997 | 1000 |
998 static void XBIOS_GL_SwapBuffers(_THIS) | 1001 static void XBIOS_GL_SwapBuffers(_THIS) |
999 { | 1002 { |