diff options
author | Eric Anholt <[email protected]> | 2013-04-10 09:59:41 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2013-04-29 11:41:34 -0700 |
commit | 072709da91d403fc9ee69b3a9d4978ae7b24549a (patch) | |
tree | 231ecf6c5e1681cc30d482f499e6862d4874b0f3 /src | |
parent | eac11996047521a5107d7877066b59db0a278d70 (diff) |
mesa: Add a clarifying comment about EXTRA_ error checking.
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/main/get.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c index 73ad8fe5378..adb7bd2312f 100644 --- a/src/mesa/main/get.c +++ b/src/mesa/main/get.c @@ -226,7 +226,13 @@ union value { * extensions or specific gl versions) or actions (flush current, new * buffers) that we need to do before looking up an enum. We need to * declare them all up front so we can refer to them in the value_desc - * structs below. */ + * structs below. + * + * Each EXTRA_ will be executed. For EXTRA_* enums of extensions and API + * versions, listing multiple ones in an array means an error will be thrown + * only if none of them are available. If you need to check for "AND" + * behavior, you would need to make a custom EXTRA_ enum. + */ static const int extra_new_buffers[] = { EXTRA_NEW_BUFFERS, |