@@ -17,7 +17,7 @@ void Texture(MM::OpenGL::Texture::handle_t& texture, bool dropTarget) {
1717 ImGui::BeginGroup ();
1818
1919 if (texture) {
20- ImGui::Image (texture->getHandle (), size, {0 .f , 1 .f }, {1 .f , 0 .f }, ImVec4 (1 ,1 ,1 ,1 ), ImVec4 (1 ,1 ,1 ,1 ));
20+ ImGui::ImageWithBg (texture->getHandle (), size, {0 .f , 1 .f }, {1 .f , 0 .f }, ImVec4 (1 ,1 ,1 ,1 ), ImVec4 (1 ,1 ,1 ,1 ));
2121
2222 // "tooltip"
2323 if (ImGui::IsItemHovered ()) {
@@ -32,7 +32,7 @@ void Texture(MM::OpenGL::Texture::handle_t& texture, bool dropTarget) {
3232 auto id = MM::ResourceManager<MM::OpenGL::Texture>::ref ().id_from_handle (texture);
3333 if (id) {
3434 ImGui::SetDragDropPayload (IMGUI_PAYLOAD_TYPE_MM_REND_TEXTURE, &(id.value ()), sizeof (id.value ()));
35- ImGui::Image (texture->getHandle (), size, {0 .f , 1 .f }, {1 .f , 0 .f }, ImVec4 (1 ,1 ,1 ,1 ), ImVec4 (1 ,1 ,1 ,1 ));
35+ ImGui::ImageWithBg (texture->getHandle (), size, {0 .f , 1 .f }, {1 .f , 0 .f }, ImVec4 (1 ,1 ,1 ,1 ), ImVec4 (1 ,1 ,1 ,1 ));
3636 }
3737 ImGui::EndDragDropSource ();
3838 }
0 commit comments