Skip to content

raylib.UnloadTexture

JoeStrout edited this page Apr 29, 2026 · 3 revisions

Unload texture from GPU memory (VRAM)

Parameters

Parameter Default Value Note
texture

Return value

None.

Notes

Example

tex = raylib.LoadTexture("sprite.png")
raylib.DrawTexture tex, 0, 0, raylib.WHITE
// Free GPU memory when texture is no longer needed
raylib.UnloadTexture tex

Clone this wiki locally