Skip to content

Commit

Permalink
recreating frameTiming on revert settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Erimelowo committed Oct 3, 2024
1 parent a97d67e commit fde4030
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -999,7 +999,10 @@ int main(int argc, char *argv[])
bool revertPressed = ImGui::Button("Revert", ImVec2(82, 28));
if (revertPressed)
{
int oldDataAverageSamples = dataAverageSamples;
loadSettings();
if (oldDataAverageSamples != dataAverageSamples)
frameTiming = new vr::Compositor_FrameTiming[dataAverageSamples];
}
ImGui::SameLine();
pushGreenButtonColour();
Expand Down

0 comments on commit fde4030

Please sign in to comment.