glDeleteShader
glDeleteShader is an OpenGL function used to delete shader objects that are no longer needed in a rendering application. Shaders in OpenGL, such as vertex shaders, fragment shaders, geometry shaders, and others, are created to perform programmable stages of the graphics pipeline. Once a shader has been attached to a program object and linked, it is common practice to delete individual shader objects to free up resources, as they are no longer required after linking.
The function prototype is typically declared as void glDeleteShader(GLuint shader), where 'shader' is the handle identifier
Proper usage involves creating shader objects with functions like glCreateShader, compiling them with glCompileShader, attaching them
In summary, glDeleteShader is a crucial function for resource management in OpenGL, supporting efficient graphics rendering