diff options
author | Brian Paul <[email protected]> | 2012-02-20 11:07:01 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2012-02-24 08:03:12 -0700 |
commit | 70d3363757d286f2fa97c9b60268a96156fdb224 (patch) | |
tree | 75bf65f59430709f26d2fc50d94fa353d18c8368 /src/mesa/swrast | |
parent | 0a543eb5c4b299a4e819895455913a77a44f52b9 (diff) |
mesa: remove MAX_WIDTH from prog_execute.h
define a PROG_MAX_WIDTH var instead. It has to match MAX_WIDTH in
swrast. More elaborate refactoring could fix that (someday).
Diffstat (limited to 'src/mesa/swrast')
-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 32f95de639c..63350b2e798 100644 --- a/src/mesa/swrast/s_context.c +++ b/src/mesa/swrast/s_context.c @@ -736,6 +736,8 @@ _swrast_CreateContext( struct gl_context *ctx ) assert((1 << (ctx->Const.MaxCubeTextureLevels - 1)) <= SWRAST_MAX_WIDTH); assert((1 << (ctx->Const.Max3DTextureLevels - 1)) <= SWRAST_MAX_WIDTH); + assert(PROG_MAX_WIDTH == SWRAST_MAX_WIDTH); + if (SWRAST_DEBUG) { _mesa_debug(ctx, "_swrast_CreateContext\n"); } |