glXGetFBConfigs() return value

Ian Romanick idr at us.ibm.com
Fri Jul 20 18:42:45 PDT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Tomas Carnecky wrote:
> Ian Romanick wrote:
>> Tomas Carnecky wrote:
>>> GLXFBConfig *list = glXGetFBConfigs(...);
>>> GLXFBConfig copy = list[0];
>>> XFree(list);
>>> glXGetFBConfigAttrib(.., copy, ..);
>> Yeah, this code should be fine.
> 
> Thanks. And is 'None' a valid value for a GLXFBConfig? To be used in
> code like this:

It's valid in the same sense that NULL is a valid pointer.

> GLXFBConfig findFBConfig(...)
> {
>     if (...)
>         return None;
>     return (GLXFBConfig) ...
> }

That looks fine to me.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQFGoWSVX1gOwKyEAw8RAm8jAKCPDTZRvB8qXuPzGf/Pza/cyUQddQCeJqlC
n94LTFOwuR7kWCQZGEoDYhA=
=Pcrr
-----END PGP SIGNATURE-----



More information about the xorg mailing list