Viewport: Avoid calling platform functions when window is not created (apart from Platform_GetWindowDpiScale, documented as such). Main viewport situation is still ambiguous. (#1542)

This commit is contained in:
omar
2018-11-29 21:28:47 +01:00
parent 36cbe1e521
commit 2fbbcaa339
3 changed files with 15 additions and 10 deletions

View File

@ -848,7 +848,7 @@ struct ImGuiContext
// Platform support
ImVec2 PlatformImePos, PlatformImeLastPos; // Cursor position request & last passed to the OS Input Method Editor
ImGuiViewport* PlatformImePosViewport;
ImGuiViewportP* PlatformImePosViewport;
// Settings
bool SettingsLoaded;