Ignore:
Timestamp:
Jan 27, 2015 5:01:15 AM (7 years ago)
Author:
ming
Message:

Re #1790: more Android OpenGL renderer

  • Fix RGBA color compatibility
  • Add autodetection feature to stop rendering for consecutive failures, such as when app is in the bg
  • Allow video stream to be created first and supply the output window later


File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia-videodev/opengl_dev.c

    r4925 r4978  
    3030#       include <GLES2/gl2.h> 
    3131#       include <GLES2/gl2ext.h> 
    32 #       define GL_BGRA GL_RGBA 
     32#       undef GL_RGBA 
     33#       define GL_RGBA GL_BGRA_EXT 
     34#       define GL_BGRA GL_BGRA_EXT 
    3335#   else 
    3436#       include <OpenGLES/ES2/gl.h> 
Note: See TracChangeset for help on using the changeset viewer.