We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 472fbc1 commit 139c4ceCopy full SHA for 139c4ce
SofaGLFW/src/SofaGLFW/SofaGLFWBaseGUI.cpp
@@ -487,6 +487,8 @@ std::size_t SofaGLFWBaseGUI::runLoop(std::size_t targetNbIterations)
487
bool running = true;
488
std::size_t currentNbIterations = 0;
489
std::stringstream tmpStr;
490
+ std::vector<uint8_t> pixels;
491
+
492
while (s_numberOfActiveWindows > 0 && running)
493
{
494
SIMULATION_LOOP_SCOPE
@@ -520,7 +522,6 @@ std::size_t SofaGLFWBaseGUI::runLoop(std::size_t targetNbIterations)
520
522
// Read framebuffer
521
523
if(this->groot->getAnimate() && this->m_bVideoRecording)
524
- std::vector<uint8_t> pixels;
525
const auto [width, height] = this->m_guiEngine->getFrameBufferPixels(pixels);
526
m_videoRecorderFFMPEG.addFrame(pixels.data(), width, height);
527
}
0 commit comments