Mercurial > sdl-ios-xcode
diff src/video/android/SDL_androidgl.c @ 4710:aeac51289991
Last test version with GLSurface
author | Paul Hunkin <paul@bieh.net> |
---|---|
date | Mon, 28 Jun 2010 21:35:28 +1200 |
parents | 6dc26b9d8368 |
children | ed040b480a9f |
line wrap: on
line diff
--- a/src/video/android/SDL_androidgl.c Fri Jun 18 01:29:14 2010 +1200 +++ b/src/video/android/SDL_androidgl.c Mon Jun 28 21:35:28 2010 +1200 @@ -43,6 +43,7 @@ */ extern pthread_mutex_t mSDLRenderMutex; extern pthread_cond_t mSDLRenderCondition; +extern void sdl_render(); /* GL functions */ int Android_GL_LoadLibrary(_THIS, const char *path){ @@ -89,12 +90,14 @@ void Android_GL_SwapWindow(_THIS, SDL_Window * window){ +/* pthread_mutex_lock(&mSDLRenderMutex); pthread_cond_wait(&mSDLRenderCondition, &mSDLRenderMutex); pthread_mutex_unlock(&mSDLRenderMutex); - +*/ //__android_log_print(ANDROID_LOG_INFO, "SDL", "[STUB] GL_SwapWindow\n"); + sdl_render(); }