mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
Add compatibility for loading old layouts with bad checkerboard colours
This commit is contained in:
@@ -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