mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 13:01:52 +00:00
Keep references to Images used by ImGui
This commit is contained in:
@@ -2,6 +2,8 @@ using System;
|
||||
using ImGui;
|
||||
using GlitchyEngine.Events;
|
||||
|
||||
using internal ImGui;
|
||||
|
||||
namespace GlitchyEngine.ImGui
|
||||
{
|
||||
public class ImGuiLayer : Layer
|
||||
@@ -207,6 +209,8 @@ namespace GlitchyEngine.ImGui
|
||||
ImGui.Render();
|
||||
ImGuiImplDX11.RenderDrawData(ImGui.GetDrawData());
|
||||
|
||||
ImGui.CleanupFrame();
|
||||
|
||||
if(io.ConfigFlags.HasFlag(.ViewportsEnable))
|
||||
{
|
||||
ImGui.UpdatePlatformWindows();
|
||||
|
||||
Reference in New Issue
Block a user