i810/i915/i915tex: reinitialize the context point state
authorXiang, Haihao <haihao.xiang@intel.com>
Wed, 4 Apr 2007 08:50:47 +0000 (16:50 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Wed, 4 Apr 2007 08:50:47 +0000 (16:50 +0800)
src/mesa/drivers/dri/i810/i810context.c
src/mesa/drivers/dri/i915/intel_context.c
src/mesa/drivers/dri/i915tex/intel_context.c

index f0332d9..4310884 100644 (file)
@@ -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;
 
index 7bb00d9..88e2667 100644 (file)
@@ -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 );
index acda7b1..b058259 100644 (file)
@@ -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. */