From a81a5e52352334ede23a7a31dd0ed7b6d83a56c8 Mon Sep 17 00:00:00 2001 From: ocornut Date: Thu, 21 Jan 2016 21:40:22 +0000 Subject: [PATCH] Commented Clang warning that's not compatible with all versions. Comments. --- examples/README.txt | 4 ++-- imgui_draw.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/README.txt b/examples/README.txt index 5acd8dff..b80866c1 100644 --- a/examples/README.txt +++ b/examples/README.txt @@ -27,14 +27,14 @@ Please let me know if they don't work with your setup! You can probably just import the imgui_impl_xxx.cpp/.h files into your own codebase or compile those directly with a command-line compiler. -ImGui has zero frame of lag for most behavios and one frame of lag for some behaviors. +ImGui has zero frame of lag for most behaviors and one frame of lag for some behaviors. At 60 FPS your experience should be pleasant. Consider that OS mouse cursors are typically drawn through a specific hardware accelerated route and may feel smoother than other GPU rendered contents. You may experiment with the io.MouseDrawCursor flag to request ImGui to draw a mouse cursor itself, to visualize the lag between an hardware cursor and a software cursor. It might be beneficial to the user experience to switch to a software rendered cursor when an interactive drag is in progress. Also note that some setup or GPU drivers may be causing extra lag (possibly by enforcing triple buffering), -leaving you with no option but sadness (Intel GPU drivers were reported as such). +leaving you with no option but sadness/anger (Intel GPU drivers were reported as such). opengl_example/ OpenGL example, using GLFW + fixed pipeline. diff --git a/imgui_draw.cpp b/imgui_draw.cpp index d2a196fd..9924d5bd 100644 --- a/imgui_draw.cpp +++ b/imgui_draw.cpp @@ -37,7 +37,7 @@ #pragma clang diagnostic ignored "-Wfloat-equal" // warning : comparing floating point with == or != is unsafe // storing and comparing against same constants ok. #pragma clang diagnostic ignored "-Wglobal-constructors" // warning : declaration requires a global destructor // similar to above, not sure what the exact difference it. #pragma clang diagnostic ignored "-Wsign-conversion" // warning : implicit conversion changes signedness // -#pragma clang diagnostic ignored "-Wreserved-id-macro" // warning : macro name is a reserved identifier // +//#pragma clang diagnostic ignored "-Wreserved-id-macro" // warning : macro name is a reserved identifier // #endif #ifdef __GNUC__ #pragma GCC diagnostic ignored "-Wunused-function" // warning: 'xxxx' defined but not used