Bug 18646

Summary: Installed glcore.h file is incomplete
Product: xorg Reporter: Peter Dyballa <Peter_Dyballa>
Component: Server/GeneralAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED WORKSFORME QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium    
Version: 7.2 (2007.02)   
Hardware: PowerPC   
OS: Mac OS X (All)   
Whiteboard:
i915 platform: i915 features:

Description Peter Dyballa 2008-11-20 15:31:16 UTC
While trying to build xorg-server 1.4.2-apple23 compilation fails in xserver/GL/glx/glcontextmodes.c:

	glcontextmodes.c: In function '_gl_copy_visual_to_context_mode':
	glcontextmodes.c:190: error: 'struct __GLcontextModesRec' has no member named 'bindToTextureRgb'
	glcontextmodes.c:191: error: 'struct __GLcontextModesRec' has no member named 'bindToTextureRgba'
	glcontextmodes.c:193: error: 'struct __GLcontextModesRec' has no member named 'bindToMipmapTexture'
	glcontextmodes.c:194: error: 'struct __GLcontextModesRec' has no member named 'bindToTextureTargets'
	glcontextmodes.c:197: error: 'struct __GLcontextModesRec' has no member named 'yInverted'

(plus some more of the same contents). In Mesa's glcore.h the struct __GLcontextModesRec has at the end

     /* EXT_texture_from_pixmap */
     GLint bindToTextureRgb;
     GLint bindToTextureRgba;
     GLint bindToMipmapTexture;
     GLint bindToTextureTargets;
     GLint yInverted;

while the installed glcore.h from proto/glproto/glcore.h misses the members as listed above.
Comment 1 Jeremy Huddleston Sequoia 2009-01-07 11:10:42 UTC
It should be using glcore.h from Mesa-7.0.4.

I vote to nuke it from glproto.

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.