From 7cba339375f4b8c4e4614853f9e160d41eb25c51 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 2 Dec 2010 09:05:53 -0800 Subject: [PATCH] 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. --- src/mesa/main/get.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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 }, -- 2.30.2