]> git.tdb.fi Git - libs/demoscene.git/commitdiff
Add a feature declaration for developer options
authorMikko Rasa <tdb@tdb.fi>
Thu, 6 Jun 2019 13:26:28 +0000 (16:26 +0300)
committerMikko Rasa <tdb@tdb.fi>
Thu, 6 Jun 2019 13:26:53 +0000 (16:26 +0300)
Build
source/launcher.cpp

diff --git a/Build b/Build
index b79d1ca076e2b115544b925473cb65ed994b1904..e0d8537d261a7aae68ad569d05c709b00f543706 100644 (file)
--- a/Build
+++ b/Build
@@ -1,5 +1,7 @@
 package "mspdemoscene"
 {
+       feature "developer" "Include developer options";
+
        require "sigc++-2.0";
        require "opengl";
        require "mspcore";
index 1563b70e2bdedcbba29e5564ddf7026dad3fddb0..2b53c18a2b2dbe92e5b78294e28eefd59dd1fb6c 100644 (file)
@@ -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()