mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-02 03:55:08 +00:00
Add compatibility for loading old layouts with bad checkerboard colours
This commit is contained in:
1 parent
b260e47c2e
commit
49dc23cb7e
1 file changed
+8
@@ -584,6 +584,14 @@ namespace renderdocui.Windows
|
||||
data = PersistData.GetDefaults();
|
||||
}
|
||||
|
||||
// fixup old incorrect checkerboard colours
|
||||
if (data.lightBack.x != data.darkBack.x)
|
||||
{
|
||||
TextureDisplay defaults = new TextureDisplay();
|
||||
data.lightBack = defaults.lightBackgroundColour;
|
||||
data.darkBack = defaults.darkBackgroundColour;
|
||||
}
|
||||
|
||||
ApplyPersistData(data);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user