Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Fix MSAA
Browse files Browse the repository at this point in the history
  • Loading branch information
MortimerGoro committed Nov 26, 2018
1 parent 348c3c1 commit baa4947
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -708,8 +708,9 @@ private void vrPrefsWorkAround(Context aContext, Bundle aExtras) {
out.write("pref(\"dom.webcomponents.customelements.enabled\", true);\n".getBytes());
// Uncomment this to enable WebRender. WARNING NOT READY FOR USAGE.
// out.write("pref(\"gfx.webrender.all\", true);\n".getBytes());
int msaaLevel = SettingsStore.getInstance(aContext).getMSAALevel();
if (msaaLevel > 1) {
int msaa = SettingsStore.getInstance(aContext).getMSAALevel();
if (msaa > 0) {
int msaaLevel = msaa == 2 ? 4 : 2;
out.write(("pref(\"gl.msaa-level\"," + msaaLevel + ");\n").getBytes());
}
addOptionalPref(out, "dom.vr.require-gesture", aExtras);
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/non_L10n.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<string name="settings_key_max_window_height" translatable="false">settings_max_window_height</string>
<string name="settings_key_env" translatable="false">settings_env</string>
<string name="settings_key_pointer_color" translatable="false">settings_pointer_color</string>
<string name="settings_key_msaa" translatable="false">settings_msaa</string>
<string name="settings_key_msaa" translatable="false">settings_gfx_msaa</string>
<string name="settings_key_audio" translatable="false">settings_audio</string>
<string name="settings_key_voice_search_language" translatable="false">settings_voice_search_language</string>
<string name="private_browsing_support_url" translatable="false">https://support.mozilla.org/kb/private-mode-firefox-reality</string>
Expand Down

0 comments on commit baa4947

Please sign in to comment.