intel: Attempt to fix up after "Update vertex texture code."
[mesa.git] / src / mesa / drivers / dri / i915 / i915_context.c
index 7d4c7cfbabbdd1a1d6e346f7f826c3242a5c30b7..0485be2cc1feafd502ed0cf2ec0778de453e1da9 100644 (file)
@@ -143,6 +143,9 @@ i915CreateContext(const __GLcontextModes * mesaVis,
    ctx->Const.MaxTextureImageUnits = I915_TEX_UNITS;
    ctx->Const.MaxTextureCoordUnits = I915_TEX_UNITS;
    ctx->Const.MaxVarying = I915_TEX_UNITS;
+   ctx->Const.MaxCombinedTextureImageUnits =
+      ctx->Const.MaxVertexTextureImageUnits +
+      ctx->Const.MaxTextureImageUnits;
 
    /* Advertise the full hardware capabilities.  The new memory
     * manager should cope much better with overload situations: