From b9da8601c8fd898581ccba15389f6350335d55c2 Mon Sep 17 00:00:00 2001 From: PrakarshPanwar Date: Sun, 19 Mar 2023 14:23:19 +0530 Subject: [PATCH] Modified line 122 in ContentBrowserPanel --- Hazelnut/src/Panels/ContentBrowserPanel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Hazelnut/src/Panels/ContentBrowserPanel.cpp b/Hazelnut/src/Panels/ContentBrowserPanel.cpp index b34119419..667ba45bd 100644 --- a/Hazelnut/src/Panels/ContentBrowserPanel.cpp +++ b/Hazelnut/src/Panels/ContentBrowserPanel.cpp @@ -119,7 +119,7 @@ namespace Hazel { icon = directoryEntry.is_directory() ? m_DirectoryIcon : m_FileIcon; ImGui::PushStyleColor(ImGuiCol_Button, ImVec4(0, 0, 0, 0)); - if (icon.get() != nullptr) + if (icon) ImGui::ImageButton((ImTextureID)icon->GetRendererID(), { thumbnailSize, thumbnailSize }, { 0, 1 }, { 1, 0 }); if (ImGui::BeginDragDropSource())