Test getters functions before calling them

This commit is contained in:
2025-09-03 12:28:34 +02:00
parent 4129677b7e
commit ee49ed1f54

View File

@@ -305,7 +305,8 @@ static void on_overlay_draw(reshade::api::effect_runtime* runtime)
ImGui::BeginChild("INFOSHeader", ImVec2(480, 80), true);
if (ImGui::CollapsingHeader("Fix informations", ImGuiTreeNodeFlags_DefaultOpen)) {
ImGui::SetCursorPos(ImVec2(5, 30));
ImGui::Text("FOV In: %.2f, Compensated : %.2f, Out : %.2f", GetFOVIn(), GetCompensadedFOV(), GetFOVOut());
if (GetFOVIn && GetCompensadedFOV && GetFOVOut)
ImGui::Text("FOV In: %.2f, Compensated : %.2f, Out : %.2f", GetFOVIn(), GetCompensadedFOV(), GetFOVOut());
}
ImGui::EndChild();
}