al_destroy_shader(3)

al_destroy_shader3

Allegro 5 api

Usage

#include <allegro5/allegro.h>
void al_destroy_shader(ALLEGRO_SHADER *shader)

Overview

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.

As a convenience, if the target bitmap of the calling thread is using the shader then the shader is implicitly unused before being destroyed.

This function does nothing if the shader argument is NULL.

Since

5.1.0

From allegro 5.2.11.3-2 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.