swrast: check max renderbuffer size against SWRAST_MAX_WIDTH
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user