diff options
author | Eric Anholt <eric@anholt.net> | 2010-12-02 09:05:53 -0800 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2010-12-17 12:57:57 -0800 |
commit | 7c0ff4a5df284bf71e24ee5ff8f306fa35e22d85 (patch) | |
tree | d7a69f726f6aecb76800fe51298d15ecb47c87ec | |
parent | d1921796056ee770bc18e37e6a978eaf46381b93 (diff) |
mesa: Add getters for the rest of the supported draw buffers.
MAX_DRAW_BUFFERS is 8, so allow all 8 GL_DRAW_BUFFER# to be retrieved.
Fixes complaints by oglconform.
(cherry picked from commit 7cba339375f4b8c4e4614853f9e160d41eb25c51)
-rw-r--r-- | src/mesa/main/get.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c index 29c1c57219..f63ec59054 100644 --- a/src/mesa/main/get.c +++ b/src/mesa/main/get.c @@ -1160,6 +1160,14 @@ static const struct value_desc values[] = { extra_valid_draw_buffer }, { GL_DRAW_BUFFER3_ARB, BUFFER_ENUM(ColorDrawBuffer[3]), extra_valid_draw_buffer }, + { GL_DRAW_BUFFER4_ARB, BUFFER_ENUM(ColorDrawBuffer[4]), + extra_valid_draw_buffer }, + { GL_DRAW_BUFFER5_ARB, BUFFER_ENUM(ColorDrawBuffer[5]), + extra_valid_draw_buffer }, + { GL_DRAW_BUFFER6_ARB, BUFFER_ENUM(ColorDrawBuffer[6]), + extra_valid_draw_buffer }, + { GL_DRAW_BUFFER7_ARB, BUFFER_ENUM(ColorDrawBuffer[7]), + extra_valid_draw_buffer }, /* GL_ATI_fragment_shader */ { GL_NUM_FRAGMENT_REGISTERS_ATI, CONST(6), extra_ATI_fragment_shader }, |