diff options
author | Laszlo Agocs <laszlo.agocs@theqtcompany.com> | 2016-04-13 10:31:51 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@theqtcompany.com> | 2016-04-13 14:18:11 +0000 |
commit | 40f1aa2d06e8217abb36f29d2a5a9189beab0826 (patch) | |
tree | e11104ee348f12dc570682a94b551592fc40c9c8 /src | |
parent | bdfd88d097c56871decf4a5ff3e7053290b067aa (diff) |
D3D12: Fix another case of stale text cbuffer
Change-Id: Ie90b9a250ab4d982ab6c75e69fdfa6b1a1a6ee0b
Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/scenegraph/d3d12/qsgd3d12builtinmaterials.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/scenegraph/d3d12/qsgd3d12builtinmaterials.cpp b/src/plugins/scenegraph/d3d12/qsgd3d12builtinmaterials.cpp index 09d70fd168..37a3ab2138 100644 --- a/src/plugins/scenegraph/d3d12/qsgd3d12builtinmaterials.cpp +++ b/src/plugins/scenegraph/d3d12/qsgd3d12builtinmaterials.cpp @@ -519,7 +519,7 @@ QSGD3D12Material::UpdateResults QSGD3D12TextMaterial::updatePipeline(const Rende p += TEXT_CB_SIZE_1; const float dpr = qsg_device_pixel_ratio(m_rc->engine()); - if (m_lastDpr != dpr) { + if (state.isCachedMaterialDataDirty() || m_lastDpr != dpr) { m_lastDpr = dpr; memcpy(p, &dpr, TEXT_CB_SIZE_2); r |= UpdatedConstantBuffer; |