OSDN Git Service

Init _UseTexEnvProgram to fix failed assertion in i915_render_start() - this may...
authorBrian Paul <brian.paul@tungstengraphics.com>
Mon, 16 Oct 2006 22:02:33 +0000 (22:02 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Mon, 16 Oct 2006 22:02:33 +0000 (22:02 +0000)
src/mesa/drivers/dri/i915/i915_context.c

index 5e4703d..2f78fd6 100644 (file)
@@ -167,6 +167,7 @@ GLboolean i915CreateContext( const __GLcontextModes *mesaVis,
    ctx->Const.FragmentProgram.MaxNativeTexIndirections = I915_MAX_TEX_INDIRECT;
    ctx->Const.FragmentProgram.MaxNativeAddressRegs = 0; /* I don't think we have one */
    ctx->_MaintainTexEnvProgram = 1;
+   ctx->_UseTexEnvProgram = 1;
 
 
    driInitExtensions( ctx, i915_extensions, GL_FALSE );