Derek Leach
|
Re: eglChooseConfig() do not conforms to OpenGL ES 1.0 specification !
|
Derek Leach
03/23/2009 5:05 AM
post24967
|
Re: eglChooseConfig() do not conforms to OpenGL ES 1.0 specification !
PR 66630 filed on your behalf.
|
|
|
Etienne Belanger(deleted)
|
Re: eglChooseConfig() do not conforms to OpenGL ES 1.0 specification !
|
Etienne Belanger(deleted)
03/23/2009 9:08 AM
post24990
|
Re: eglChooseConfig() do not conforms to OpenGL ES 1.0 specification !
From the EGL 1.2 spec, section 3.4.1 Querying Configurations, Sorting of EGLConfigs:
"If more than one matching EGLConfig is found, then a list of EGLConfigs
is returned. The list is sorted by proceeding in ascending order of the Sort Priority column of table 3.4."
Special sorting rule #3 sorts by larger total number of "requested" color bits, which is the sum of all color components
with requested component size not equal to 0 or EGL_DONT_CARE. This rule takes precedence over rule #4, which sorts by
smaller buffer sizes.
The paragraph you quoted from the OpenGL ES 1.0 seems to agree with this: "If this value is zero, the smallest available
red buffer is preferred. Otherwise, the largest available red buffer of at least the minimum size is preferred."
If you want to get configs ordered by increasing buffer size, you should set EGL_RED_SIZE, EGL_GREEN_SIZE, EGL_BLUE_SIZE
, and EGL_ALPHA_SIZE to 0 or EGL_DONT_CARE, (or not set them at all since 0 is the default value,) and set
EGL_BUFFER_SIZE to 16.
|
|
|