enable image compression at run time in baker

This commit is contained in:
Stephen Birarda 2017-05-18 11:27:24 -07:00
parent a7f154a853
commit 3edbd41027

View file

@ -12,6 +12,7 @@
#include <QtCore/QDebug>
#include <QtCore/QThread>
#include <image/Image.h>
#include <SettingInterface.h>
#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