Changeset 4835


Ignore:
Timestamp:
May 5, 2014 7:53:31 AM (11 years ago)
Author:
ming
Message:

Re #1757: Avoid calling OpenGL ES functions when in the background (which may cause app to be killed by iOS)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia-videodev/ios_opengl_dev.m

    r4821 r4835  
    163163- (void)render 
    164164{ 
     165    /* Don't make OpenGLES calls while in the background */ 
     166    if ([UIApplication sharedApplication].applicationState == 
     167        UIApplicationStateBackground) 
     168        return; 
     169     
    165170    if (![EAGLContext setCurrentContext:stream->ogl_context]) { 
    166171        /* Failed to set context */ 
Note: See TracChangeset for help on using the changeset viewer.