mesa: update comment on delete_shader_program()
authorBrian Paul <brianp@vmware.com>
Fri, 2 Jan 2015 23:56:12 +0000 (16:56 -0700)
committerBrian Paul <brianp@vmware.com>
Mon, 5 Jan 2015 20:50:54 +0000 (13:50 -0700)
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/main/shaderapi.c

index 8e49e3010c4d6f9d92894ca9e4fd8fee31c8b93c..43170b817dde4a20a43c30f249c9ce4b8d654ad2 100644 (file)
@@ -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)