Browse Source

DebugTools: doc++

pull/680/head
Vladimír Vondruš 11 months ago
parent
commit
d4387a315c
  1. 2
      src/Magnum/DebugTools/FrameProfiler.cpp
  2. 4
      src/Magnum/DebugTools/FrameProfiler.h

2
src/Magnum/DebugTools/FrameProfiler.cpp

@ -99,7 +99,7 @@ FrameProfiler& FrameProfiler::operator=(FrameProfiler&& other) noexcept {
if(measurement._state == &other) measurement._state = this;
/* And the same the other way to avoid the other instance accidentally
affecting out measurements */
affecting our measurements */
for(Measurement& measurement: other._measurements)
if(measurement._state == this) measurement._state = &other;

4
src/Magnum/DebugTools/FrameProfiler.h

@ -497,8 +497,8 @@ class MAGNUM_DEBUGTOOLS_EXPORT FrameProfiler::Measurement {
} _query;
void* _state;
Units _units;
/* Set to 0 to distinguish immediate measurements (first
constructor), however always used as max(_delay, 1) */
/* Set to 0 to distinguish immediate measurements (first constructor),
however always used as max(_delay, 1) */
UnsignedInt _delay;
UnsignedInt _current{};

Loading…
Cancel
Save