From: Mikko Rasa Date: Thu, 6 Jun 2019 13:26:28 +0000 (+0300) Subject: Add a feature declaration for developer options X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=2be535f3b531fbda744b740da2150b25f0387173;p=libs%2Fdemoscene.git Add a feature declaration for developer options --- diff --git a/Build b/Build index b79d1ca..e0d8537 100644 --- a/Build +++ b/Build @@ -1,5 +1,7 @@ package "mspdemoscene" { + feature "developer" "Include developer options"; + require "sigc++-2.0"; require "opengl"; require "mspcore"; diff --git a/source/launcher.cpp b/source/launcher.cpp index 1563b70..2b53c18 100644 --- a/source/launcher.cpp +++ b/source/launcher.cpp @@ -147,11 +147,13 @@ void LauncherBase::tick_demo() display.tick(); demo->tick(); +#ifdef WITH_DEVELOPER if(frame_dump) { glReadPixels(0, 0, window.get_width(), window.get_height(), GL_RGB, GL_UNSIGNED_BYTE, frame_dump_buffer); frame_dump->write(frame_dump_buffer, frame_size); } +#endif } void LauncherBase::tick_launch_screen()