From 120ba7dcd7781642882d87190dc88e1891788d9d Mon Sep 17 00:00:00 2001 From: Lynix Date: Tue, 28 Nov 2023 15:22:10 +0100 Subject: [PATCH] Fix font texture mipmaps and setup a debug name --- src/NazaraImgui/NazaraImgui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NazaraImgui/NazaraImgui.cpp b/src/NazaraImgui/NazaraImgui.cpp index e859912..c3c5201 100644 --- a/src/NazaraImgui/NazaraImgui.cpp +++ b/src/NazaraImgui/NazaraImgui.cpp @@ -360,8 +360,8 @@ namespace Nz texParams.height = height; texParams.pixelFormat = Nz::PixelFormat::RGBA8; texParams.type = Nz::ImageType::E2D; - m_fontTexture = renderDevice->InstantiateTexture(texParams); - m_fontTexture->Update(pixels, width, height); + m_fontTexture = renderDevice->InstantiateTexture(texParams, pixels, true); + m_fontTexture->UpdateDebugName("FontTexture"); ImTextureID textureID = m_fontTexture.get(); io.Fonts->TexID = textureID;