src/video/android/SDL_androidevents.c
changeset 8039 3b0346b37e0f
parent 7910 261addaa47d0
child 8093 b43765095a6f
equal deleted inserted replaced
8038:e1f2a85d9dda 8039:3b0346b37e0f
    64     /* No polling necessary */
    64     /* No polling necessary */
    65 
    65 
    66     /*
    66     /*
    67      * Android_ResumeSem and Android_PauseSem are signaled from Java_org_libsdl_app_SDLActivity_nativePause and Java_org_libsdl_app_SDLActivity_nativeResume
    67      * Android_ResumeSem and Android_PauseSem are signaled from Java_org_libsdl_app_SDLActivity_nativePause and Java_org_libsdl_app_SDLActivity_nativeResume
    68      * When the pause semaphore is signaled, if SDL_ANDROID_BLOCK_ON_PAUSE is defined the event loop will block until the resume signal is emitted.
    68      * When the pause semaphore is signaled, if SDL_ANDROID_BLOCK_ON_PAUSE is defined the event loop will block until the resume signal is emitted.
    69      * When the resume semaphore is signaled, SDL_GL_CreateContext is called which in turn calls Java code
       
    70      * SDLActivity::createGLContext -> SDLActivity:: initEGL -> SDLActivity::createEGLSurface -> SDLActivity::createEGLContext
       
    71      */
    69      */
    72 
    70 
    73 #if SDL_ANDROID_BLOCK_ON_PAUSE
    71 #if SDL_ANDROID_BLOCK_ON_PAUSE
    74     if (isPaused && !isPausing) {
    72     if (isPaused && !isPausing) {
    75         /* Make sure this is the last thing we do before pausing */
    73         /* Make sure this is the last thing we do before pausing */