From 63496d25deaeeae2b60d4e2aca869c024ebad552 Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Thu, 15 Apr 2021 14:51:15 +0200 Subject: [PATCH] docs: use code-block for glsl Reviewed-by: Eric Anholt Part-of: --- docs/shading.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/shading.rst b/docs/shading.rst index 7b96e471e16..36d94202f2b 100644 --- a/docs/shading.rst +++ b/docs/shading.rst @@ -115,13 +115,13 @@ Programming Hints - Use the built-in library functions whenever possible. For example, instead of writing this: - :: + .. code-block:: glsl float x = 1.0 / sqrt(y); Write this: - :: + .. code-block:: glsl float x = inversesqrt(y);