Bug 35615 - symbols missing in GLES2/gl2.h
Summary: symbols missing in GLES2/gl2.h
Status: RESOLVED INVALID
Alias: None
Product: Mesa
Classification: Unclassified
Component: Mesa core (show other bugs)
Version: git
Hardware: Other All
: medium normal
Assignee: mesa-dev
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-24 00:40 UTC by Niels Ole Salscheider
Modified: 2011-03-24 06:20 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Niels Ole Salscheider 2011-03-24 00:40:17 UTC
When I try to build VLC master, I get the following error:

opengl.c: In function 'vout_display_opengl_Display':
opengl.c:471:5: error: implicit declaration of function 'glEnableClientState'
opengl.c:471:25: error: 'GL_VERTEX_ARRAY' undeclared (first use in this function)
opengl.c:471:25: note: each undeclared identifier is reported only once for each function it appears in
opengl.c:472:25: error: 'GL_TEXTURE_COORD_ARRAY' undeclared (first use in this function)
opengl.c:473:5: error: implicit declaration of function 'glVertexPointer'
opengl.c:474:5: error: implicit declaration of function 'glTexCoordPointer'

According to this bug report (http://trac.videolan.org/vlc/ticket/4553) I found in VLC's bug tracker, it seems to be Mesa's fault since GLES2/gl2.h should have glEnableClientState, glVertexPointer, glTexCoordPointer, GL_VERTEX_ARRAY, GL_TEXTURE_COORD_ARRAY and probably some more.
Comment 1 Brian Paul 2011-03-24 06:20:52 UTC
Mesa uses the standard GLES2/gl2.h header from Khronos.  GL_VERTEX_ARRAY and GL_TEXTURE_COORD_ARRAY are not defined or used by OpenGL ES 2.0 (please read the ES 2.0 spec).  This looks to me like the bug is in VLC.  The VLC authors should double-check that their code isn't accidentally using desktop OpenGL features with ES 2.0.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.