Commit bcc49064 authored by Johan Helsing's avatar Johan Helsing
Browse files

Make debug logging less verbose

parent e768f1fc
......@@ -234,7 +234,7 @@ QDemonRenderGraphObject *QDemonImage::updateSpatialNode(QDemonRenderGraphObject
imageNode->m_flags.setFlag(QDemonRenderImage::Flag::TransformDirty);
if (m_sourceItem) {
qDebug() << "update spatial node with source item";
// qDebug() << "update spatial node with source item";
QQuickWindow *window = sourceItem()->window();
if (!window) {
// Do a hack to set the window
......@@ -252,14 +252,13 @@ QDemonRenderGraphObject *QDemonImage::updateSpatialNode(QDemonRenderGraphObject
}
if (auto *textureProvider = m_sourceItem->textureProvider()) {
qDebug() << "Yay! We have a texture provider :)";
// qDebug() << "Yay! We have a texture provider :)";
if (auto *texture = textureProvider->texture()) {
qDebug() << "...even with a texture :D" << texture << texture->textureId();
imageNode->m_qsgTexture = texture; // TODO: what about dynamic textures?
connect(textureProvider, &QSGTextureProvider::textureChanged, this, &QDemonObject::update);
//TODO: rememember to disconnect this signal if the provider changes...
} else {
qDebug() << "...with no texture :(";
qWarning() << "source item with a texture provider, but no texture";
}
} else {
qWarning() << "source items which are not texture providers are currently not supported";
......
......@@ -88,7 +88,8 @@ bool QDemonRenderImage::clearDirty(const QDemonRef<QDemonBufferManager> &inBuffe
newImage = inBufferManager->loadRenderImage(m_qsgTexture);
replaceTexture = newImage.m_texture != m_textureData.m_texture;
auto details = newImage.m_texture->textureDetails();
qDebug() << "replaceTexture" << replaceTexture << details.width << details.height << newImage.m_texture->handle();
if (replaceTexture)
qDebug() << "replaceTexture" << details.width << details.height << newImage.m_texture->handle();
}
if (newImage.m_texture == nullptr) {
......
......@@ -717,7 +717,7 @@ struct QDemonShaderGenerator : public QDemonDefaultMaterialShaderGeneratorInterf
QDemonRef<QDemonRenderTexture2D> imageTexture = inImage.m_image.m_textureData.m_texture;
inImage.m_image.m_textureData.m_texture->setTextureWrapS(inImage.m_image.m_horizontalTilingMode);
inImage.m_image.m_textureData.m_texture->setTextureWrapT(inImage.m_image.m_verticalTilingMode);
qDebug() << "Setting sampler to" << imageTexture.data();
// qDebug() << "Setting sampler to" << imageTexture.data();
theShaderProps.sampler.set(imageTexture.data());
theShaderProps.offsets.set(offsets);
theShaderProps.rotations.set(rotations);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment