weird crash on mac due to pop style
This commit is contained in:
parent
52460f0c89
commit
22a17e92e7
@ -1246,12 +1246,14 @@ void GLGizmoEmboss::draw_text_input()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// add border around input when warning appears
|
// add border around input when warning appears
|
||||||
|
#ifndef __APPLE__
|
||||||
ScopeGuard input_border_sg;
|
ScopeGuard input_border_sg;
|
||||||
if (!warning.empty()) {
|
if (!warning.empty()) {
|
||||||
ImGui::PushStyleVar(ImGuiStyleVar_FrameBorderSize, 1.0f);
|
ImGui::PushStyleVar(ImGuiStyleVar_FrameBorderSize, 1.0f);
|
||||||
ImGui::PushStyleColor(ImGuiCol_Border, ImGuiWrapper::COL_ORANGE_LIGHT);
|
ImGui::PushStyleColor(ImGuiCol_Border, ImGuiWrapper::COL_ORANGE_LIGHT);
|
||||||
input_border_sg = ScopeGuard([]() { ImGui::PopStyleColor(); ImGui::PopStyleVar(); });
|
input_border_sg = ScopeGuard([]() { ImGui::PopStyleColor(); ImGui::PopStyleVar(); });
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// flag for extend font ranges if neccessary
|
// flag for extend font ranges if neccessary
|
||||||
// ranges can't be extend during font is activ(pushed)
|
// ranges can't be extend during font is activ(pushed)
|
||||||
|
Loading…
Reference in New Issue
Block a user