[vlc-commits] vout: opengl: increase picture max for gles2

Thomas Guillem git at videolan.org
Mon Nov 28 16:37:47 CET 2016


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Nov 24 17:05:35 2016 +0100| [ec65d2e2d42e6dcf42b80158cd481ec6a0495d18] | committer: Thomas Guillem

vout: opengl: increase picture max for gles2

This restriction was here because gles1 devices didn't have much memory, but
it's not the case (anymore) for gles2 devices.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ec65d2e2d42e6dcf42b80158cd481ec6a0495d18
---

 modules/video_output/opengl.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/video_output/opengl.c b/modules/video_output/opengl.c
index 81f58c6..4968edf 100644
--- a/modules/video_output/opengl.c
+++ b/modules/video_output/opengl.c
@@ -79,12 +79,13 @@
 #if USE_OPENGL_ES
 #   define GLSL_VERSION "100"
 #   define VLCGL_TEXTURE_COUNT 1
-#   define VLCGL_PICTURE_MAX 1
 #   define PRECISION "precision highp float;"
 #if USE_OPENGL_ES == 2
+#   define VLCGL_PICTURE_MAX 128
 #   define SUPPORTS_SHADERS
 #   define glClientActiveTexture(x)
 #else
+#   define VLCGL_PICTURE_MAX 1
 #   define SUPPORTS_FIXED_PIPELINE
 #   define GL_MAX_TEXTURE_IMAGE_UNITS GL_MAX_TEXTURE_UNITS
 #endif



More information about the vlc-commits mailing list