Garry's Mod Wiki

draw.NoTexture

  draw.NoTexture()

Description

Sets drawing texture to a default white texture (vgui/white) via surface.SetMaterial. Useful for resetting the drawing texture.

This is a rendering function that requires a 2d rendering context.

This means that it will only work in 2d Rendering Hooks.