From 3edbd41027d5c88f47e95745fd9538ba437544ac Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Thu, 18 May 2017 11:27:24 -0700 Subject: [PATCH] enable image compression at run time in baker --- tools/oven/src/Oven.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/oven/src/Oven.cpp b/tools/oven/src/Oven.cpp index ac8ef505ba..39187aedc4 100644 --- a/tools/oven/src/Oven.cpp +++ b/tools/oven/src/Oven.cpp @@ -12,6 +12,7 @@ #include #include +#include #include #include "ui/OvenMainWindow.h" @@ -29,6 +30,12 @@ Oven::Oven(int argc, char* argv[]) : // init the settings interface so we can save and load settings Setting::init(); + // enable compression in image library + image::setColorTexturesCompressionEnabled(true); + image::setGrayscaleTexturesCompressionEnabled(true); + image::setNormalTexturesCompressionEnabled(true); + image::setCubeTexturesCompressionEnabled(true); + // check if we were passed any command line arguments that would tell us just to run without the GUI // setup the GUI