opengl: use common fragment shader for Android
The OpenGL converter for Android used its own minimal fragment shader, instead of the common one used by all the other converters. This stemmed from the fact that on each texture update, Android provides a transform matrix to apply in order to retrieve the correct texture coordinates. Adapt the common fragment shader to accept a transform matrix provided by the converter, and make the Android converter use it.
Showing
- modules/video_output/opengl/converter.h 20 additions, 0 deletionsmodules/video_output/opengl/converter.h
- modules/video_output/opengl/converter_android.c 8 additions, 46 deletionsmodules/video_output/opengl/converter_android.c
- modules/video_output/opengl/fragment_shaders.c 11 additions, 1 deletionmodules/video_output/opengl/fragment_shaders.c
- modules/video_output/opengl/gl_common.h 3 additions, 0 deletionsmodules/video_output/opengl/gl_common.h
- modules/video_output/opengl/vout_helper.c 15 additions, 1 deletionmodules/video_output/opengl/vout_helper.c
Loading
Please register or sign in to comment