mirror of
https://github.com/gwm17/implot.git
synced 2024-11-26 20:28:50 -05:00
fix compiler warning in demo
This commit is contained in:
parent
3109940b46
commit
0cafcd0011
|
@ -222,7 +222,8 @@ void ShowDemoWindow(bool* p_open) {
|
||||||
//-------------------------------------------------------------------------
|
//-------------------------------------------------------------------------
|
||||||
ImGui::Text("ImPlot says hello. (%s)", IMPLOT_VERSION);
|
ImGui::Text("ImPlot says hello. (%s)", IMPLOT_VERSION);
|
||||||
// display warning about 16-bit indices
|
// display warning about 16-bit indices
|
||||||
if (sizeof(ImDrawIdx)*8 == 16 && (ImGui::GetIO().BackendFlags & ImGuiBackendFlags_RendererHasVtxOffset) == false) {
|
static bool showWarning = sizeof(ImDrawIdx)*8 == 16 && (ImGui::GetIO().BackendFlags & ImGuiBackendFlags_RendererHasVtxOffset) == false;
|
||||||
|
if (showWarning) {
|
||||||
ImGui::PushStyleColor(ImGuiCol_Text, ImVec4(1,1,0,1));
|
ImGui::PushStyleColor(ImGuiCol_Text, ImVec4(1,1,0,1));
|
||||||
ImGui::TextWrapped("WARNING: ImDrawIdx is 16-bit and ImGuiBackendFlags_RendererHasVtxOffset is false. Expect visual glitches and artifacts! See README for more information.");
|
ImGui::TextWrapped("WARNING: ImDrawIdx is 16-bit and ImGuiBackendFlags_RendererHasVtxOffset is false. Expect visual glitches and artifacts! See README for more information.");
|
||||||
ImGui::PopStyleColor();
|
ImGui::PopStyleColor();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user