r300: Adapt to the removal of _tnl_ProgramCacheInit() and friends.
authorMichel Dänzer <michel@tungstengraphics.com>
Mon, 22 Sep 2008 09:49:34 +0000 (11:49 +0200)
committerMichel Dänzer <michel@tungstengraphics.com>
Mon, 22 Sep 2008 09:49:34 +0000 (11:49 +0200)
src/mesa/drivers/dri/r300/r300_context.c

index 0ff249cfca04a3af28af5bca2c560b03dd38b04f..ee4a69dce36b9b789d8a54ceee63a459885c3e99 100644 (file)
@@ -355,7 +355,7 @@ GLboolean r300CreateContext(const __GLcontextModes * glVisual,
        ctx->Const.FragmentProgram.MaxNativeTexIndirections =
            PFS_MAX_TEX_INDIRECT;
        ctx->Const.FragmentProgram.MaxNativeAddressRegs = 0;    /* and these are?? */
-       _tnl_ProgramCacheInit(ctx);
+       ctx->VertexProgram._MaintainTnlProgram = GL_TRUE;
        ctx->FragmentProgram._MaintainTexEnvProgram = GL_TRUE;
 
        driInitExtensions(ctx, card_extensions, GL_TRUE);
@@ -501,7 +501,6 @@ void r300DestroyContext(__DRIcontextPrivate * driContextPriv)
                release_texture_heaps =
                    (r300->radeon.glCtx->Shared->RefCount == 1);
                _swsetup_DestroyContext(r300->radeon.glCtx);
-               _tnl_ProgramCacheDestroy(r300->radeon.glCtx);
                _tnl_DestroyContext(r300->radeon.glCtx);
                _vbo_DestroyContext(r300->radeon.glCtx);
                _swrast_DestroyContext(r300->radeon.glCtx);