[vlc-devel] [PATCH 02/16] opengl: use OpenGL ES 2 on Android
Romain Vimont
rom1v at videolabs.io
Tue Mar 17 17:26:35 CET 2020
---
modules/video_output/opengl/gl_common.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/modules/video_output/opengl/gl_common.h b/modules/video_output/opengl/gl_common.h
index 26ff00d7cc..842c08b780 100644
--- a/modules/video_output/opengl/gl_common.h
+++ b/modules/video_output/opengl/gl_common.h
@@ -38,6 +38,10 @@
# include <OpenGLES/ES2/glext.h>
# endif
#else /* !defined (__APPLE__) */
+# if defined(__ANDROID__) && !defined(USE_OPENGL_ES2)
+/* Force OpenGL ES 2 on Android */
+# define USE_OPENGL_ES2
+# endif
# if defined (USE_OPENGL_ES2)
# include <GLES2/gl2.h>
# include <GLES2/gl2ext.h>
--
2.25.1
More information about the vlc-devel
mailing list