.\" Automatically generated by Pandoc 3.1.3 .\" .\" Define V font for inline verbatim, using C font in formats .\" that render this, and otherwise B font. .ie "\f[CB]x\f[]"x" \{\ . ftr V B . ftr VI BI . ftr VB B . ftr VBI BI .\} .el \{\ . ftr V CR . ftr VI CI . ftr VB CB . ftr VBI CBI .\} .TH "al_destroy_shader" "3alleg5" "" "Allegro reference manual" "" .hy .SH NAME .PP al_destroy_shader - Allegro 5 API .SH SYNOPSIS .IP .nf \f[C] #include void al_destroy_shader(ALLEGRO_SHADER *shader) \f[R] .fi .SH DESCRIPTION .PP Destroy a shader. Any bitmaps which currently use the shader will implicitly stop using the shader. In multi-threaded programs, be careful that no such bitmaps are being accessed by other threads at the time. .PP As a convenience, if the target bitmap of the calling thread is using the shader then the shader is implicitly unused before being destroyed. .PP This function does nothing if the shader argument is NULL. .SH SINCE .PP 5.1.0 .SH SEE ALSO .PP al_create_shader(3alleg5)