From 40ae3943f2ced65cdb77091f7dd31b57a0f422dd Mon Sep 17 00:00:00 2001 From: "Xiang, Haihao" Date: Wed, 4 Apr 2007 16:50:47 +0800 Subject: [PATCH] i810/i915/i915tex: reinitialize the context point state --- src/mesa/drivers/dri/i810/i810context.c | 5 +++++ src/mesa/drivers/dri/i915/intel_context.c | 5 +++++ src/mesa/drivers/dri/i915tex/intel_context.c | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/src/mesa/drivers/dri/i810/i810context.c b/src/mesa/drivers/dri/i810/i810context.c index f0332d9ae8b..43108840eb6 100644 --- a/src/mesa/drivers/dri/i810/i810context.c +++ b/src/mesa/drivers/dri/i810/i810context.c @@ -278,6 +278,11 @@ i810CreateContext( const __GLcontextModes *mesaVis, ctx->Const.MaxPointSizeAA = 3.0; ctx->Const.PointSizeGranularity = 1.0; + /* reinitialize the context point state. + * It depend on constants in __GLcontextRec::Const + */ + _mesa_init_point(ctx); + ctx->Driver.GetBufferSize = i810BufferSize; ctx->Driver.GetString = i810GetString; diff --git a/src/mesa/drivers/dri/i915/intel_context.c b/src/mesa/drivers/dri/i915/intel_context.c index 7bb00d98339..88e26679f2d 100644 --- a/src/mesa/drivers/dri/i915/intel_context.c +++ b/src/mesa/drivers/dri/i915/intel_context.c @@ -302,6 +302,11 @@ GLboolean intelInitContext( intelContextPtr intel, ctx->Const.MaxPointSizeAA = 3.0; ctx->Const.PointSizeGranularity = 1.0; + /* reinitialize the context point state. + * It depend on constants in __GLcontextRec::Const + */ + _mesa_init_point(ctx); + /* Initialize the software rasterizer and helper modules. */ _swrast_CreateContext( ctx ); _vbo_CreateContext( ctx ); diff --git a/src/mesa/drivers/dri/i915tex/intel_context.c b/src/mesa/drivers/dri/i915tex/intel_context.c index acda7b1c16d..b058259edf9 100644 --- a/src/mesa/drivers/dri/i915tex/intel_context.c +++ b/src/mesa/drivers/dri/i915tex/intel_context.c @@ -390,6 +390,11 @@ intelInitContext(struct intel_context *intel, ctx->Const.MaxPointSizeAA = 3.0; ctx->Const.PointSizeGranularity = 1.0; + /* reinitialize the context point state. + * It depend on constants in __GLcontextRec::Const + */ + _mesa_init_point(ctx); + ctx->Const.MaxColorAttachments = 4; /* XXX FBO: review this */ /* Initialize the software rasterizer and helper modules. */ -- 2.30.2