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); }