Bug 965804 - Ignore the deprecated texture pref except on Windows. r=Bas,Vlad

This commit is contained in:
Nicolas Silva 2014-01-31 14:17:11 +01:00
parent 1954d196cd
commit 7e4d9d4164

View File

@ -302,8 +302,14 @@ gfxPlatform::gfxPlatform()
XRE_GetProcessType() == GeckoProcessType_Default &&
Preferences::GetBool("layers.prefer-memory-over-shmem", true);
#ifdef XP_WIN
// XXX - When 957560 is fixed, the pref can go away entirely
mLayersUseDeprecated =
Preferences::GetBool("layers.use-deprecated-textures", true);
Preferences::GetBool("layers.use-deprecated-textures", true)
&& !Preferences::GetBool("layers.prefer-opengl", false);
#else
mLayersUseDeprecated = false;
#endif
Preferences::AddBoolVarCache(&mDrawLayerBorders,
"layers.draw-borders",