fix screen width/height issue on Intel/Linux

add command-line option to set png_skip_frames when taking screenshot series
This commit is contained in:
Erwin Coumans (Google)
2016-07-26 15:36:21 -07:00
parent 8270096fad
commit 98c6181ba8
4 changed files with 29 additions and 22 deletions

View File

@@ -753,8 +753,10 @@ void SimpleOpenGL3App::swapBuffer()
m_window->endRendering();
if (m_data->m_frameDumpPngFileName)
{
writeTextureToFile((int)m_window->getRetinaScale()*m_instancingRenderer->getScreenWidth(),
(int) m_window->getRetinaScale()*this->m_instancingRenderer->getScreenHeight(),m_data->m_frameDumpPngFileName,
int width = (int)m_window->getRetinaScale()*m_instancingRenderer->getScreenWidth();
int height = (int) m_window->getRetinaScale()*this->m_instancingRenderer->getScreenHeight();
writeTextureToFile(width,
height,m_data->m_frameDumpPngFileName,
m_data->m_ffmpegFile);
m_data->m_renderTexture->disable();
if (m_data->m_ffmpegFile==0)