swrast: check max renderbuffer size against SWRAST_MAX_WIDTH
This commit is contained in:
parent
a3b2c3a421
commit
cb49def3d6
|
@ -729,6 +729,8 @@ _swrast_CreateContext( struct gl_context *ctx )
|
||||||
assert(ctx->Const.MaxViewportWidth <= SWRAST_MAX_WIDTH);
|
assert(ctx->Const.MaxViewportWidth <= SWRAST_MAX_WIDTH);
|
||||||
assert(ctx->Const.MaxViewportHeight <= 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 */
|
/* make sure largest texture image is <= SWRAST_MAX_WIDTH in size */
|
||||||
assert((1 << (ctx->Const.MaxTextureLevels - 1)) <= SWRAST_MAX_WIDTH);
|
assert((1 << (ctx->Const.MaxTextureLevels - 1)) <= SWRAST_MAX_WIDTH);
|
||||||
assert((1 << (ctx->Const.MaxCubeTextureLevels - 1)) <= SWRAST_MAX_WIDTH);
|
assert((1 << (ctx->Const.MaxCubeTextureLevels - 1)) <= SWRAST_MAX_WIDTH);
|
||||||
|
|
Loading…
Reference in New Issue