mesa: Remove the gl_program::Resident flag.
authorKenneth Graunke <kenneth@whitecape.org>
Sun, 14 Oct 2012 22:30:40 +0000 (15:30 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 16 Oct 2012 18:24:34 +0000 (11:24 -0700)
It apparently was only used for NV programs.

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/main/mtypes.h
src/mesa/program/program.c

index 0bbc5536f114a5caba9ac68711bfa7824f3cbba5..761dc7837d642e108f9d1302835291ac4498d04a 100644 (file)
@@ -1924,7 +1924,6 @@ struct gl_program
    GLint RefCount;
    GLenum Target;    /**< GL_VERTEX/FRAGMENT_PROGRAM_ARB, GL_FRAGMENT_PROGRAM_NV */
    GLenum Format;    /**< String encoding format */
-   GLboolean Resident;
 
    struct prog_instruction *Instructions;
 
index c97c696691e304aab7de215da07c33de0a5b411d..4c533a9035de69ff0076c9aa3ea5e2701f36a7c5 100644 (file)
@@ -238,7 +238,6 @@ _mesa_init_program_struct( struct gl_context *ctx, struct gl_program *prog,
       memset(prog, 0, sizeof(*prog));
       prog->Id = id;
       prog->Target = target;
-      prog->Resident = GL_TRUE;
       prog->RefCount = 1;
       prog->Format = GL_PROGRAM_FORMAT_ASCII_ARB;