Skip to content

Commit

Permalink
Bug 1285629 - Incorrect feature check for ogl on windows r=BenWa
Browse files Browse the repository at this point in the history
MozReview-Commit-ID: ABphm17YWnH

--HG--
extra : rebase_source : d82ff2813be434f9a5ed4e8f5b17aeba228548d8
  • Loading branch information
eyim committed Jul 8, 2016
1 parent ddb2747 commit d9b9994
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions gfx/thebes/gfxPlatform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2448,6 +2448,14 @@ gfxPlatform::BumpDeviceCounter()
void
gfxPlatform::InitOpenGLConfig()
{
#ifdef XP_WIN
// Don't enable by default on Windows, since it could show up in about:support even
// though it'll never get used. Only attempt if user enables the pref
if (!Preferences::GetBool("layers.prefer-opengl")){
return;
}
#endif

FeatureState& openGLFeature = gfxConfig::GetFeature(Feature::OPENGL_COMPOSITING);

// Check to see hw comp supported
Expand All @@ -2458,11 +2466,9 @@ gfxPlatform::InitOpenGLConfig()
}

#ifdef XP_WIN
// Don't enable by default on Windows, since it could show up in about:support even
// though it'll never get used.
openGLFeature.SetDefaultFromPref(
gfxPrefs::GetLayersPreferOpenGLPrefName(),
false,
true,
gfxPrefs::GetLayersPreferOpenGLPrefDefault());
#else
openGLFeature.EnableByDefault();
Expand Down

0 comments on commit d9b9994

Please sign in to comment.