[vlc-devel] [PATCH 0/3] Opengl to use GLSL 1.2

Grigori Goronzy greg at chown.ath.cx
Sun May 6 16:39:12 CEST 2012


On 05/06/2012 01:10 AM, Felix Paul Kühne wrote:
> #ifndef USE_OPENGL_ES
> #   define PFNGLBINDVERTEXARRAYPROC          typeof(glBindVertexArrayAPPLE)*
> #   define PFNGLDELETEVERTEXARRAYSPROC       typeof(glDeleteVertexArraysAPPLE)*
> #   define PFNGLGENVERTEXARRAYSPROC          typeof(glGenVertexArraysAPPLE)*
> #else
> #   define PFNGLBINDVERTEXARRAYPROC          typeof(glBindVertexArrayOES)*
> #   define PFNGLDELETEVERTEXARRAYSPROC       typeof(glDeleteVertexArraysOES)*
> #   define PFNGLGENVERTEXARRAYSPROC          typeof(glGenVertexArraysOES)*
> #   define GL_UNPACK_ROW_LENGTH 0
> #endif

What gain is there to VAOs in the OpenGL (ES) output, anyway? As far as
I can see they just hinder compatibility by requiring a specific extension.

VLC only draws a single quad, and the differences between vertex arrays,
VBO and VBO+VAO are most probably negligible.

Best regards
Grigori



More information about the vlc-devel mailing list