remove redundant program field initializers in BindProgram(); ctx->Driver.NewProgram...
authorBrian Paul <brian.paul@tungstengraphics.com>
Sun, 20 Jun 2004 20:55:36 +0000 (20:55 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Sun, 20 Jun 2004 20:55:36 +0000 (20:55 +0000)
src/mesa/shader/program.c

index 2b458fe525a6f885d637fc8d11aeb2b1ef811724..b58b5e003d2b760f5923dff68832158134a77b1b 100644 (file)
@@ -907,10 +907,6 @@ _mesa_BindProgram(GLenum target, GLuint id)
             _mesa_error(ctx, GL_OUT_OF_MEMORY, "glBindProgramNV/ARB");
             return;
          }
-         prog->Id = id;
-         prog->Target = target;
-         prog->Resident = GL_TRUE;
-         prog->RefCount = 1;
          _mesa_HashInsert(ctx->Shared->Programs, id, prog);
       }
    }