Bug 29841

Summary: glx.h has incorrect values for "Tokens for glXChooseVisual and glXGetConfig"
Product: Mesa Reporter: chafporte <junk>
Component: GLXAssignee: mesa-dev
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description chafporte 2010-08-27 08:44:10 UTC
the following from the latest glx.h are obviously all wrong
and should provide the real size of the gl system
for instance GLX_RED_SIZE and GLX_GREEN_SIZE and GLX_BLUE_SIZE
should all be 8 and GLX_BUFFER_SIZE should be the sum of these 3 values.

/*
 * Tokens for glXChooseVisual and glXGetConfig:
 */
#define GLX_USE_GL		1
#define GLX_BUFFER_SIZE		2
#define GLX_LEVEL		3
#define GLX_RGBA		4
#define GLX_DOUBLEBUFFER	5
#define GLX_STEREO		6
#define GLX_AUX_BUFFERS		7
#define GLX_RED_SIZE		8
#define GLX_GREEN_SIZE		9
#define GLX_BLUE_SIZE		10
#define GLX_ALPHA_SIZE		11
#define GLX_DEPTH_SIZE		12
#define GLX_STENCIL_SIZE	13
#define GLX_ACCUM_RED_SIZE	14
#define GLX_ACCUM_GREEN_SIZE	15
#define GLX_ACCUM_BLUE_SIZE	16
#define GLX_ACCUM_ALPHA_SIZE	17
Comment 1 Kristian Høgsberg 2010-08-27 09:06:21 UTC
That's not how it's supposed to work.

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.