mesa: Add getters for the rest of the supported draw buffers.
authorEric Anholt <eric@anholt.net>
Thu, 2 Dec 2010 17:05:53 +0000 (09:05 -0800)
committerEric Anholt <eric@anholt.net>
Thu, 2 Dec 2010 18:28:52 +0000 (10:28 -0800)
MAX_DRAW_BUFFERS is 8, so allow all 8 GL_DRAW_BUFFER# to be retrieved.
Fixes complaints by oglconform.

src/mesa/main/get.c

index c8c0b8b4b1fe279514d490a1051a668a3e00693e..11ba58ae295691a692397098b6d1b12ee0210d43 100644 (file)
@@ -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 },