Bug 29841 - glx.h has incorrect values for "Tokens for glXChooseVisual and glXGetConfig"
Summary: glx.h has incorrect values for "Tokens for glXChooseVisual and glXGetConfig"
Status: RESOLVED INVALID
Alias: None
Product: Mesa
Classification: Unclassified
Component: GLX (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: mesa-dev
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-27 08:44 UTC by chafporte
Modified: 2010-08-27 09:06 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

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.