aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/get.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2005-01-30 17:18:08 +0000
committerBrian Paul <[email protected]>2005-01-30 17:18:08 +0000
commitb55117042fb0efbff17931af5d4b38e6b28d06af (patch)
tree6ddd43c8d1c13478c309d57b634accf5be5903da /src/mesa/main/get.c
parent29d021cd31faa1d3892122e2ed2d4753a9e92c27 (diff)
fix max viewport query
Diffstat (limited to 'src/mesa/main/get.c')
-rw-r--r--src/mesa/main/get.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c
index 7b1351cadad..d9d6a568f16 100644
--- a/src/mesa/main/get.c
+++ b/src/mesa/main/get.c
@@ -613,8 +613,8 @@ _mesa_GetBooleanv( GLenum pname, GLboolean *params )
params[0] = INT_TO_BOOLEAN(MAX_TEXTURE_STACK_DEPTH);
break;
case GL_MAX_VIEWPORT_DIMS:
- params[0] = INT_TO_BOOLEAN(MAX_WIDTH);
- params[1] = INT_TO_BOOLEAN(MAX_HEIGHT);
+ params[0] = INT_TO_BOOLEAN(ctx->Const.MaxViewportWidth);
+ params[1] = INT_TO_BOOLEAN(ctx->Const.MaxViewportHeight);
break;
case GL_MODELVIEW_MATRIX:
{
@@ -2416,8 +2416,8 @@ _mesa_GetFloatv( GLenum pname, GLfloat *params )
params[0] = (GLfloat)(MAX_TEXTURE_STACK_DEPTH);
break;
case GL_MAX_VIEWPORT_DIMS:
- params[0] = (GLfloat)(MAX_WIDTH);
- params[1] = (GLfloat)(MAX_HEIGHT);
+ params[0] = (GLfloat)(ctx->Const.MaxViewportWidth);
+ params[1] = (GLfloat)(ctx->Const.MaxViewportHeight);
break;
case GL_MODELVIEW_MATRIX:
{
@@ -4219,8 +4219,8 @@ _mesa_GetIntegerv( GLenum pname, GLint *params )
params[0] = MAX_TEXTURE_STACK_DEPTH;
break;
case GL_MAX_VIEWPORT_DIMS:
- params[0] = MAX_WIDTH;
- params[1] = MAX_HEIGHT;
+ params[0] = ctx->Const.MaxViewportWidth;
+ params[1] = ctx->Const.MaxViewportHeight;
break;
case GL_MODELVIEW_MATRIX:
{