Skip to content
Snippets Groups Projects
Commit 18711bd8 authored by Tarja Sundqvist's avatar Tarja Sundqvist
Browse files

Merge remote-tracking branch 'origin/tqtc/lts-5.15.11' into tqtc/lts-5.15-opensource

Change-Id: Icb2df955e6a800182adde39375ffad22dd79c30d
parents b485a86d aaa45885
No related branches found
No related tags found
No related merge requests found
......@@ -3,4 +3,4 @@ load(qt_build_config)
CONFIG += warning_clean
DEFINES += QT_NO_FOREACH
MODULE_VERSION = 5.15.10
MODULE_VERSION = 5.15.11
......@@ -128,6 +128,7 @@ void QSSGRenderFrameBuffer::attach(QSSGRenderFrameBufferAttachment attachment,
if (theRelTarget != QSSGRenderTextureTargetType::Unknown && theRelTarget != target)
m_backend->renderTargetAttach(m_bufferHandle, attachment, QSSGRenderBackend::QSSGRenderBackendTextureObject(nullptr), theRelTarget);
buffer.texture2D()->applyTextureParams();
m_backend->renderTargetAttach(m_bufferHandle, attachment, buffer.texture2D()->handle(), target);
// buffer.GetTexture2D()->addRef();
m_attachmentBits |= attachmentBit;
......
......@@ -286,4 +286,12 @@ void QSSGRenderTexture2D::bind()
applyTexSwizzle();
}
void QSSGRenderTexture2D::applyTextureParams()
{
m_backend->bindTexture(m_handle, m_texTarget, 0);
applyTexParams();
applyTexSwizzle();
m_backend->bindTexture(0, m_texTarget, 0);
}
QT_END_NAMESPACE
......@@ -142,6 +142,8 @@ public:
*/
void bind() override;
void applyTextureParams();
/**
* @brief Query if texture needs coordinate swizzle
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment