From: Brian Paul Date: Sun, 20 Jun 2004 20:55:36 +0000 (+0000) Subject: remove redundant program field initializers in BindProgram(); ctx->Driver.NewProgram... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=26359143b673db7793d06ff2b4217198aa0266d6;p=mesa.git remove redundant program field initializers in BindProgram(); ctx->Driver.NewProgram() does the inits --- diff --git a/src/mesa/shader/program.c b/src/mesa/shader/program.c index 2b458fe525a..b58b5e003d2 100644 --- a/src/mesa/shader/program.c +++ b/src/mesa/shader/program.c @@ -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); } }