From 97d97f80c2ed0e84e75c0b5ad57be4514f7741e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Wed, 3 Nov 2021 17:53:05 +0100 Subject: [PATCH] doc: make GLFrameProfiler snippets use the same private variable. So when I copy these alongside the FrameProfiler snippets into my code (as I just did), they work directly, without having to rename. --- doc/snippets/MagnumDebugTools-gl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/snippets/MagnumDebugTools-gl.cpp b/doc/snippets/MagnumDebugTools-gl.cpp index e3d575071..74b3de239 100644 --- a/doc/snippets/MagnumDebugTools-gl.cpp +++ b/doc/snippets/MagnumDebugTools-gl.cpp @@ -115,7 +115,7 @@ GL::SampleQuery queries[3]{ GL::SampleQuery{GL::SampleQuery::Target::SamplesPassed}, GL::SampleQuery{GL::SampleQuery::Target::SamplesPassed} }; -DebugTools::FrameProfiler profiler{{ +DebugTools::FrameProfiler _profiler{{ DebugTools::FrameProfiler::Measurement{"Samples", DebugTools::FrameProfiler::Units::Count, UnsignedInt(Containers::arraySize(queries)), @@ -150,7 +150,7 @@ new DebugTools::ObjectRenderer3D{manager, *object, "my", &debugDrawables}; { /* [FrameProfilerGL-usage] */ -DebugTools::FrameProfilerGL profiler{ +DebugTools::FrameProfilerGL _profiler{ DebugTools::FrameProfilerGL::Value::FrameTime| DebugTools::FrameProfilerGL::Value::GpuDuration, 50}; /* [FrameProfilerGL-usage] */