aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2004-10-04 03:19:01 +0000
committerIan Romanick <[email protected]>2004-10-04 03:19:01 +0000
commit00fb3a054a7499a9db6f87088356bee5c4e8f135 (patch)
treec2f9b9bf1dd06fb73c1f1849418cae1692225650 /src/mesa
parent5e243bd57e4c53206a986d67a2bd05450e7fc238 (diff)
Set MaxTextureImageUnits and MaxTextureCoordUnits to match MaxTextureUnits.
This fixes bugzilla #1511.
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/unichrome/via_context.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/unichrome/via_context.c b/src/mesa/drivers/dri/unichrome/via_context.c
index 13648854f33..d62e5c2b1da 100644
--- a/src/mesa/drivers/dri/unichrome/via_context.c
+++ b/src/mesa/drivers/dri/unichrome/via_context.c
@@ -440,6 +440,8 @@ viaCreateContext(const __GLcontextModes *mesaVis,
ctx->Const.MaxTextureLevels = 11;
ctx->Const.MaxTextureUnits = 2;
+ ctx->Const.MaxTextureImageUnits = ctx->Const.MaxTextureUnits;
+ ctx->Const.MaxTextureCoordUnits = ctx->Const.MaxTextureUnits;
ctx->Const.MinLineWidth = 1.0;
ctx->Const.MinLineWidthAA = 1.0;