mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 07:08:04 +02:00
mesa: increase MAX_DRAW_BUFFERS to 8
Required for GL 3.x
This commit is contained in:
parent
8b0c217f2b
commit
e2ea69afef
2 changed files with 4 additions and 1 deletions
|
|
@ -250,7 +250,7 @@
|
||||||
|
|
||||||
/** For GL_ARB_draw_buffers */
|
/** For GL_ARB_draw_buffers */
|
||||||
/*@{*/
|
/*@{*/
|
||||||
#define MAX_DRAW_BUFFERS 4
|
#define MAX_DRAW_BUFFERS 8
|
||||||
/*@}*/
|
/*@}*/
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -652,6 +652,9 @@ check_context_limits(GLcontext *ctx)
|
||||||
|
|
||||||
assert(ctx->Const.MaxDrawBuffers <= MAX_DRAW_BUFFERS);
|
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 */
|
/* XXX probably add more tests */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue