diff src/video/android/SDL_androidgl.c @ 4711:ed040b480a9f

- Restructured threads and application structure. - Moved to SurfaceView instead of GLSurfaceView - Moved to C++ for the android library
author Paul Hunkin <paul@bieh.net>
date Tue, 29 Jun 2010 00:40:12 +1200
parents aeac51289991
children faa228f7ce5b
line wrap: on
line diff
--- a/src/video/android/SDL_androidgl.c	Mon Jun 28 21:35:28 2010 +1200
+++ b/src/video/android/SDL_androidgl.c	Tue Jun 29 00:40:12 2010 +1200
@@ -41,8 +41,7 @@
 /*
 These things are in the JNI android support
 */
-extern pthread_mutex_t mSDLRenderMutex;
-extern pthread_cond_t mSDLRenderCondition;
+extern void sdl_create_context();
 extern void sdl_render();
 
 /* GL functions */
@@ -68,7 +67,7 @@
 */
 
 SDL_GLContext Android_GL_CreateContext(_THIS, SDL_Window * window){
-	__android_log_print(ANDROID_LOG_INFO, "SDL", "[STUB] GL_CreateContext\n");
+	sdl_create_context();
 	return 1;
 }
 
@@ -89,16 +88,7 @@
 }
 
 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();
-
 }
 
 void Android_GL_DeleteContext(_THIS, SDL_GLContext context){