summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuca Di Sera <luca.disera@qt.io>2021-11-22 17:08:42 +0100
committerLuca Di Sera <luca.disera@qt.io>2021-11-25 09:55:56 +0100
commit91b6648ac89bb452219c5c89a3ffe79fa4d3de49 (patch)
tree0cbf56ead5f7f309821d402ebfc31d6e7f7609f2
parent9bdabc8c1412ae58080f700f42f2393c6357788a (diff)
Doc: Replace use of \oldcode-\newcode
The command-pair was recently deprecated. The replacement code should produce an output that is equal to the previous one. Task-number: QTBUG-98499 Change-Id: I31a7cf8cb29e76dd73b676039b87c108af1bd1af Reviewed-by: Paul Wicking <paul.wicking@qt.io>
-rw-r--r--src/core/doc/snippets/code/src_render_renderstates_qmultisampleantialiasing.qdocinc8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/core/doc/snippets/code/src_render_renderstates_qmultisampleantialiasing.qdocinc b/src/core/doc/snippets/code/src_render_renderstates_qmultisampleantialiasing.qdocinc
index 9c530382f..097de42c1 100644
--- a/src/core/doc/snippets/code/src_render_renderstates_qmultisampleantialiasing.qdocinc
+++ b/src/core/doc/snippets/code/src_render_renderstates_qmultisampleantialiasing.qdocinc
@@ -1,8 +1,9 @@
Further, the shader code must use multisampling sampler types and texelFetch() instead
of texture().
-\oldcode
+For example, if you have code like
+\code
#version 150
uniform sampler2D colorTexture;
@@ -13,9 +14,11 @@ void main()
{
fragColor = texture(colorTexture, texCoord);
}
+\endcode
-\newcode
+you can rewrite it as
+\code
#version 150
uniform sampler2DMS colorTexture;
@@ -31,5 +34,4 @@ void main()
texelFetch(colorTexture, tc, 3);
fragColor = c / 4.0;
}
-
\endcode