diff options
author | Brian Paul <brianp@vmware.com> | 2012-02-20 11:07:00 -0700 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2012-02-24 08:03:10 -0700 |
commit | cb49def3d6f946def1f53c736d1179ed9b576ab1 (patch) | |
tree | da479c5253de61b4f4859d689467219424c34895 | |
parent | a3b2c3a4211f72b82d1061a94447cdbc1321ab8e (diff) | |
download | external_mesa3d-cb49def3d6f946def1f53c736d1179ed9b576ab1.zip external_mesa3d-cb49def3d6f946def1f53c736d1179ed9b576ab1.tar.gz external_mesa3d-cb49def3d6f946def1f53c736d1179ed9b576ab1.tar.bz2 |
swrast: check max renderbuffer size against SWRAST_MAX_WIDTH
-rw-r--r-- | src/mesa/swrast/s_context.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/swrast/s_context.c b/src/mesa/swrast/s_context.c index d00a6a7..32f95de 100644 --- a/src/mesa/swrast/s_context.c +++ b/src/mesa/swrast/s_context.c @@ -729,6 +729,8 @@ _swrast_CreateContext( struct gl_context *ctx ) assert(ctx->Const.MaxViewportWidth <= SWRAST_MAX_WIDTH); assert(ctx->Const.MaxViewportHeight <= SWRAST_MAX_WIDTH); + assert(ctx->Const.MaxRenderbufferSize <= SWRAST_MAX_WIDTH); + /* make sure largest texture image is <= SWRAST_MAX_WIDTH in size */ assert((1 << (ctx->Const.MaxTextureLevels - 1)) <= SWRAST_MAX_WIDTH); assert((1 << (ctx->Const.MaxCubeTextureLevels - 1)) <= SWRAST_MAX_WIDTH); |