diff options
author | Brian Paul <[email protected]> | 2005-02-02 14:12:59 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2005-02-02 14:12:59 +0000 |
commit | 6286dda286515790daa8b827e5de43b548a4ff68 (patch) | |
tree | 7cd6e7b6d5decfab7aa50d00ea5144ca5f8a7f8b /src/mesa/main/matrix.c | |
parent | 1a1c49f8a6b0e46c1b551409534b3e2ebbbb401d (diff) |
clamp viewport against ctx->Const.MaxViewportWidth/Height instead of MAX_WIDTH/HEIGHT
Diffstat (limited to 'src/mesa/main/matrix.c')
-rw-r--r-- | src/mesa/main/matrix.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/main/matrix.c b/src/mesa/main/matrix.c index 82ea37508d0..70cbee5f3d0 100644 --- a/src/mesa/main/matrix.c +++ b/src/mesa/main/matrix.c @@ -10,9 +10,9 @@ /* * Mesa 3-D graphics library - * Version: 6.1 + * Version: 6.3 * - * Copyright (C) 1999-2004 Brian Paul All Rights Reserved. + * Copyright (C) 1999-2005 Brian Paul All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -582,8 +582,8 @@ _mesa_set_viewport( GLcontext *ctx, GLint x, GLint y, } /* clamp width, and height to implementation dependent range */ - width = CLAMP( width, 1, MAX_WIDTH ); - height = CLAMP( height, 1, MAX_HEIGHT ); + width = CLAMP( width, 1, ctx->Const.MaxViewportWidth ); + height = CLAMP( height, 1, ctx->Const.MaxViewportHeight ); /* Save viewport */ ctx->Viewport.X = x; |