History

add a setting to workaround the GLES colorspace conversion issue

HifiExperiments committed 2 years ago

Commit f987bbc1 parent 493c9c96 files · +32 −12Browse files

Showing the changes to interface/src/Menu.cpp (1 of 6 files). Show all

Unified · Split

interface/src/Menu.cpp+8−0
@@ -46,6 +46,7 @@ · 45 unmodified lines
4646 #include "avatar/AvatarManager.h"
4747 #include "avatar/AvatarPackager.h"
4848 #include "AvatarBookmarks.h"
49+#include <display-plugins/OpenGLDisplayPlugin.h>
4950 #include "DomainAccountManager.h"
5051 #include "MainWindow.h"
5152 #include "render/DrawStatus.h"
@@ -549,6 +550,13 @@ Menu::Menu() { · 497 unmodified lines
549550 drawStatusConfig, SLOT(setShowFade(bool)));
550551 }
551552
553+ {
554+ action = addCheckableActionToQMenuAndActionHash(renderOptionsMenu, MenuOption::ExtraLinearTosRGBConversion, 0, OpenGLDisplayPlugin::getExtraLinearToSRGBConversion());
555+ connect(action, &QAction::triggered, [action] {
556+ OpenGLDisplayPlugin::setExtraLinearToSRGBConversion(action->isChecked());
557+ });
558+ }
559+
552560 // Developer > Assets >>>
553561 // Menu item is not currently needed but code should be kept in case it proves useful again at some stage.
554562 //#define WANT_ASSET_MIGRATION