diff options
author | Eric Anholt <[email protected]> | 2010-12-02 09:05:53 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2010-12-02 10:28:52 -0800 |
commit | 7cba339375f4b8c4e4614853f9e160d41eb25c51 (patch) | |
tree | 65981ad9a2aa159df8d6aa10a235138b57d46fc6 | |
parent | b381eff1411dea5b9e0c9fbc8641a8760052b2eb (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.
-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 c8c0b8b4b1f..11ba58ae295 100644 --- a/src/mesa/main/get.c +++ b/src/mesa/main/get.c @@ -1109,6 +1109,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 }, |