fix(GUI): Call ImGui::End regardless of return of ImGui::Begin

Fixes #127
This commit is contained in:
Yimura 2022-03-22 23:39:33 +01:00
parent 0efb118349
commit bb92e76425
No known key found for this signature in database
GPG Key ID: 3D8FF4397E768682
4 changed files with 4 additions and 5 deletions

View File

@ -93,8 +93,7 @@ namespace big
} }
} }
}
ImGui::End(); ImGui::End();
} }
}
} }

View File

@ -41,8 +41,8 @@ namespace big
ImGui::PopStyleColor(); ImGui::PopStyleColor();
} }
ImGui::PopStyleVar(); ImGui::PopStyleVar();
ImGui::End();
} }
ImGui::End();
ImGui::PopStyleColor(); ImGui::PopStyleColor();
} }
} }

View File

@ -67,7 +67,7 @@ namespace big
} }
ImGui::PopStyleColor(); ImGui::PopStyleColor();
}
ImGui::End(); ImGui::End();
} }
}
} }

View File

@ -27,7 +27,7 @@ namespace big
ImGui::PopStyleColor(2); ImGui::PopStyleColor(2);
ImGui::PopStyleVar(); ImGui::PopStyleVar();
} }
}
ImGui::End(); ImGui::End();
} }
}
} }