Skip to content

Commit

Permalink
Enable OpenGL by default on all platforms
Browse files Browse the repository at this point in the history
Before it was only enabled by default for Mac.

Reviewed-by: Erik Schilling
  • Loading branch information
bjorn committed Aug 5, 2012
1 parent b51a15a commit 133a451
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions src/client.cpp
Expand Up @@ -331,7 +331,7 @@ Client::Client(const Options &options):
}
#endif

bool useOpenGL = !mOptions.noOpenGL && (config.getValue("opengl", 0) == 1);
bool useOpenGL = !mOptions.noOpenGL && (config.getValue("opengl", 1) == 1);

// Set up the transparency option for low CPU when not using OpenGL.
if (!useOpenGL && (config.getValue("disableTransparency", 0) == 1))
Expand Down Expand Up @@ -1225,11 +1225,7 @@ void Client::initConfiguration()
{
// Fill configuration with defaults
config.setValue("hwaccel", false);
#if defined __APPLE__ && defined USE_OPENGL
config.setValue("opengl", true);
#else
config.setValue("opengl", false);
#endif
config.setValue("screen", false);
config.setValue("sound", true);
config.setValue("guialpha", 0.8f);
Expand Down
2 changes: 1 addition & 1 deletion src/defaults.cpp
Expand Up @@ -78,7 +78,7 @@ DefaultsData* getConfigDefaults()
AddDEF(configData, "particleEmitterSkip", 1);
AddDEF(configData, "particleeffects", true);
AddDEF(configData, "logToStandardOut", false);
AddDEF(configData, "opengl", false);
AddDEF(configData, "opengl", true);
AddDEF(configData, "screenwidth", defaultScreenWidth);
AddDEF(configData, "screenheight", defaultScreenHeight);
AddDEF(configData, "screen", false);
Expand Down

0 comments on commit 133a451

Please sign in to comment.