Mesa (master): mesa: Add getters for the rest of the supported draw buffers .
Eric Anholt
anholt at kemper.freedesktop.org
Thu Dec 2 18:29:27 UTC 2010
Module: Mesa
Branch: master
Commit: 7cba339375f4b8c4e4614853f9e160d41eb25c51
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7cba339375f4b8c4e4614853f9e160d41eb25c51
Author: Eric Anholt <eric at anholt.net>
Date: Thu Dec 2 09:05:53 2010 -0800
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 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c
index c8c0b8b..11ba58a 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 },
More information about the mesa-commit
mailing list