From affc22f17d329a4d17d595dd468ce82ac3a015dd Mon Sep 17 00:00:00 2001 From: TryTwo Date: Tue, 12 Aug 2025 02:00:44 -0700 Subject: Update code to work with new version of ImGui. UpdateImGuiTexture now handles creating font textures and modifying them. --- Source/Core/VideoCommon/AbstractTexture.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Source/Core/VideoCommon/AbstractTexture.cpp') diff --git a/Source/Core/VideoCommon/AbstractTexture.cpp b/Source/Core/VideoCommon/AbstractTexture.cpp index d60925ab25..a557f46020 100644 --- a/Source/Core/VideoCommon/AbstractTexture.cpp +++ b/Source/Core/VideoCommon/AbstractTexture.cpp @@ -20,6 +20,11 @@ AbstractTexture::AbstractTexture(const TextureConfig& c) : m_config(c) { } +AbstractTexture::operator ImTextureRef() const +{ + return ImTextureRef(reinterpret_cast(this)); +} + void AbstractTexture::FinishedRendering() { } -- cgit v1.2.3