mirror of
https://github.com/ocornut/imgui.git
synced 2024-11-15 19:43:28 +01:00
Viewport: When enabled we assert against using RenderDrawListFn to make user more aware of rendering order. (#1542)
This commit is contained in:
parent
7113fc7dee
commit
b807347e94
@ -3548,6 +3548,9 @@ void ImGui::NewFrame()
|
||||
|
||||
if (g.IO.ConfigFlags & ImGuiConfigFlags_MultiViewports)
|
||||
{
|
||||
#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS
|
||||
IM_ASSERT(g.IO.RenderDrawListsFn == NULL); // Call ImGui::Render() then pass ImGui::GetDrawData() yourself to your render function!
|
||||
#endif
|
||||
IM_ASSERT(g.IO.PlatformInterface.CreateViewport != NULL);
|
||||
IM_ASSERT(g.IO.PlatformInterface.DestroyViewport != NULL);
|
||||
//IM_ASSERT(g.IO.PlatformInterface.RenderViewport != NULL || g.IO.RendererInterface.RenderViewport != NULL); // Missing rendering function
|
||||
|
Loading…
Reference in New Issue
Block a user