docs: use code-block for glsl

Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10281>
This commit is contained in:
Erik Faye-Lund 2021-04-15 14:51:15 +02:00 committed by Marge Bot
parent 54ad6f91c6
commit 63496d25de
1 changed files with 2 additions and 2 deletions

View File

@ -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);