From: Brian Paul Date: Fri, 2 Jan 2015 23:56:12 +0000 (-0700) Subject: mesa: update comment on delete_shader_program() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3f687e995f3b4b8099013b2a6e28433b40639dd7;p=mesa.git mesa: update comment on delete_shader_program() Reviewed-by: Eric Anholt --- diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c index 8e49e3010c4..43170b817dd 100644 --- a/src/mesa/main/shaderapi.c +++ b/src/mesa/main/shaderapi.c @@ -326,8 +326,9 @@ create_shader_program(struct gl_context *ctx) /** - * Named w/ "2" to indicate OpenGL 2.x vs GL_ARB_fragment_programs's - * DeleteProgramARB. + * Delete a shader program. Actually, just decrement the program's + * reference count and mark it as DeletePending. + * Used to implement glDeleteProgram() and glDeleteObjectARB(). */ static void delete_shader_program(struct gl_context *ctx, GLuint name)