diff options
author | Brian Paul <[email protected]> | 2005-02-07 05:08:24 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2005-02-07 05:08:24 +0000 |
commit | 3deaa01c2bd576ae81fc6d3ea67c583cb3c22159 (patch) | |
tree | 720bcae66b5456b4a88e52c35c03274332b2acca /src/mesa/main/context.c | |
parent | 1e42244e82e387282849b0182bb71b6803ac27d3 (diff) |
additional work on GL_EXT_framebuffer_object
Diffstat (limited to 'src/mesa/main/context.c')
-rw-r--r-- | src/mesa/main/context.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index 1b4911ddc55..cb04a7bab9a 100644 --- a/src/mesa/main/context.c +++ b/src/mesa/main/context.c @@ -1158,9 +1158,15 @@ _mesa_init_constants( GLcontext *ctx ) ctx->Const.MaxDrawBuffers = MAX_DRAW_BUFFERS; + /* GL_OES_read_format */ ctx->Const.ColorReadFormat = GL_RGBA; ctx->Const.ColorReadType = GL_UNSIGNED_BYTE; +#if FEATURE_EXT_framebuffer_object + ctx->Const.MaxColorAttachments = MAX_COLOR_ATTACHMENTS; + ctx->Const.MaxRenderbufferSize = MAX_WIDTH; +#endif + /* sanity checks */ ASSERT(ctx->Const.MaxTextureUnits == MAX2(ctx->Const.MaxTextureImageUnits, ctx->Const.MaxTextureCoordUnits)); } |