diff options
author | Keith Whitwell <keith@tungstengraphics.com> | 2003-12-12 10:06:02 +0000 |
---|---|---|
committer | Keith Whitwell <keith@tungstengraphics.com> | 2003-12-12 10:06:02 +0000 |
commit | 013056ac651383579b1395c18ad96bd0dca620dd (patch) | |
tree | 91cfdfd1cd277fb9650f96fd76603ccf01191dbb /src/mesa/drivers/dri/mga | |
parent | e01d671668a2f618de689e72cce5caf21f57d4a0 (diff) |
set MaxTextureImageUnits, MaxTextureCoordUnits
Diffstat (limited to 'src/mesa/drivers/dri/mga')
-rw-r--r-- | src/mesa/drivers/dri/mga/mga_xmesa.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/mga/mga_xmesa.c b/src/mesa/drivers/dri/mga/mga_xmesa.c index 3888d12cb9..75a6c32b57 100644 --- a/src/mesa/drivers/dri/mga/mga_xmesa.c +++ b/src/mesa/drivers/dri/mga/mga_xmesa.c @@ -411,11 +411,15 @@ mgaCreateContext( const __GLcontextModes *mesaVis, ctx = mmesa->glCtx; if ( mgaScreen->chipset == MGA_CARD_TYPE_G200 ) { ctx->Const.MaxTextureUnits = 1; + ctx->Const.MaxTextureImageUnits = 1; + ctx->Const.MaxTextureCoordUnits = 1; maxlevels = G200_TEX_MAXLEVELS; } else { ctx->Const.MaxTextureUnits = 2; + ctx->Const.MaxTextureImageUnits = 2; + ctx->Const.MaxTextureCoordUnits = 2; maxlevels = G400_TEX_MAXLEVELS; } |