diff options
author | Laszlo Agocs <laszlo.agocs@theqtcompany.com> | 2016-04-19 16:22:20 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@theqtcompany.com> | 2016-04-20 13:22:25 +0000 |
commit | 3b5bbc4696940d72e6f7fde1c411cc9c037a7fda (patch) | |
tree | 672762b3a5a814c64036f42d81facb8e725e7980 /src/plugins/scenegraph/d3d12/qsgd3d12glyphcache.cpp | |
parent | 28f8795d716035516f03542cd55275375462fdc5 (diff) |
D3D12: Add support for multisampled layers
Pick up the main sample count. Rename a few things in the process and make
the distinction betewen the int QSurfaceFormat::samples() that can be -1 or
0, and the internal uint sample count, that is >= 1, more clear.
Change-Id: Ifd5a9a7c2f894b04fdc93f86ebb7c69f8c76cd28
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'src/plugins/scenegraph/d3d12/qsgd3d12glyphcache.cpp')
-rw-r--r-- | src/plugins/scenegraph/d3d12/qsgd3d12glyphcache.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/scenegraph/d3d12/qsgd3d12glyphcache.cpp b/src/plugins/scenegraph/d3d12/qsgd3d12glyphcache.cpp index 373e16d7c4..d9c125318f 100644 --- a/src/plugins/scenegraph/d3d12/qsgd3d12glyphcache.cpp +++ b/src/plugins/scenegraph/d3d12/qsgd3d12glyphcache.cpp @@ -77,7 +77,7 @@ void QSGD3D12GlyphCache::createTextureData(int width, int height) const QImage::Format imageFormat = m_format == QFontEngine::Format_A8 ? QImage::Format_Alpha8 : QImage::Format_ARGB32_Premultiplied; - m_engine->createTexture(m_id, m_size, imageFormat, QSGD3D12Engine::CreateWithAlpha); + m_engine->createTexture(m_id, m_size, imageFormat, QSGD3D12Engine::TextureWithAlpha); } void QSGD3D12GlyphCache::resizeTextureData(int width, int height) |