mesa: increase MAX_DRAW_BUFFERS to 8

Required for GL 3.x
This commit is contained in:
Brian Paul 2010-05-03 17:35:40 -06:00
parent 8b0c217f2b
commit e2ea69afef
2 changed files with 4 additions and 1 deletions

View file

@ -250,7 +250,7 @@
/** For GL_ARB_draw_buffers */
/*@{*/
#define MAX_DRAW_BUFFERS 4
#define MAX_DRAW_BUFFERS 8
/*@}*/

View file

@ -652,6 +652,9 @@ check_context_limits(GLcontext *ctx)
assert(ctx->Const.MaxDrawBuffers <= MAX_DRAW_BUFFERS);
/* if this fails, add more enum values to gl_buffer_index */
assert(BUFFER_COLOR0 + MAX_DRAW_BUFFERS <= BUFFER_COUNT);
/* XXX probably add more tests */
}