From 5e23aaf05d76cd8832725a6c3d0588ff222cb3b2 Mon Sep 17 00:00:00 2001 From: Ian Chen Date: Mon, 30 Oct 2023 22:24:10 +0000 Subject: [PATCH] cleanup Signed-off-by: Ian Chen --- examples/simple_demo_qml/ThreadRenderer.cpp | 2 -- ogre2/src/Ogre2Material.cc | 1 - 2 files changed, 3 deletions(-) diff --git a/examples/simple_demo_qml/ThreadRenderer.cpp b/examples/simple_demo_qml/ThreadRenderer.cpp index 26b1606d5..4aff4dee6 100644 --- a/examples/simple_demo_qml/ThreadRenderer.cpp +++ b/examples/simple_demo_qml/ThreadRenderer.cpp @@ -272,7 +272,6 @@ TextureNode::TextureNode(QQuickWindow *_window) , window(_window) { // Our texture node must have a texture, so use the default 0 texture. - // createTextureFromNativeObject() #if QT_VERSION < QT_VERSION_CHECK(5, 14, 0) # ifndef _WIN32 # pragma GCC diagnostic push @@ -292,7 +291,6 @@ TextureNode::TextureNode(QQuickWindow *_window) QSize(1, 1)); #endif - this->setTexture(this->texture); this->setFiltering(QSGTexture::Linear); } diff --git a/ogre2/src/Ogre2Material.cc b/ogre2/src/Ogre2Material.cc index 8705d6826..ee65af868 100644 --- a/ogre2/src/Ogre2Material.cc +++ b/ogre2/src/Ogre2Material.cc @@ -1242,7 +1242,6 @@ void Ogre2Material::SetTextureMapDataImpl(const std::string& _name, // upload raw color image data to gpu texture Ogre::Image2 img; img.loadDynamicImage(&data[0], false, texture); - // img.save(_name, 1, 1); img.uploadTo(texture, 0, 0); }