Compile fix if instrumentation is disabled

This commit is contained in:
Alexander Bock
2019-07-19 11:08:07 +02:00
parent fc28b98db9
commit 852115e309

View File

@@ -820,6 +820,7 @@ void RenderEngine::postDraw() {
);
}
#ifdef OPENSPACE_WITH_INSTRUMENTATION
if (_saveFrameInformation) {
_frameInfo.frames.push_back({
frameNumber(),
@@ -828,8 +829,6 @@ void RenderEngine::postDraw() {
});
}
#ifdef OPENSPACE_WITH_INSTRUMENTATION
const uint16_t next = _frameInfo.lastSavedFrame + _frameInfo.saveEveryNthFrame;
const bool shouldSave = _saveFrameInformation && frameNumber() >= next;
if (shouldSave) {