diff options
author | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io> | 2020-09-22 10:59:54 +0200 |
---|---|---|
committer | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io> | 2020-09-22 12:16:40 +0200 |
commit | a1e42237c5f4d877ff9a5d67bc22ce1a10e237d0 (patch) | |
tree | 29c52fb96e92fb82f6d82bddd230dfb91a214624 /src/plugins/scenegraph/openvg/qsgopenvgpublicnodes.cpp | |
parent | aeadc5c4741a63304579904b11dd60b349ba8e0c (diff) |
Fix compilation for OpenVG plugin
Adapt to changes in RHI and Qt 6 in general.
Change-Id: I1f8f148530e8ca1db482430b6147fc5fbba9f813
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'src/plugins/scenegraph/openvg/qsgopenvgpublicnodes.cpp')
-rw-r--r-- | src/plugins/scenegraph/openvg/qsgopenvgpublicnodes.cpp | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/plugins/scenegraph/openvg/qsgopenvgpublicnodes.cpp b/src/plugins/scenegraph/openvg/qsgopenvgpublicnodes.cpp index b5f6b39c60..413400a966 100644 --- a/src/plugins/scenegraph/openvg/qsgopenvgpublicnodes.cpp +++ b/src/plugins/scenegraph/openvg/qsgopenvgpublicnodes.cpp @@ -242,6 +242,15 @@ QSGTexture::Filtering QSGOpenVGImageNode::mipmapFiltering() const return QSGTexture::None; } +void QSGOpenVGImageNode::setAnisotropyLevel(QSGTexture::AnisotropyLevel) +{ +} + +QSGTexture::AnisotropyLevel QSGOpenVGImageNode::anisotropyLevel() const +{ + return QSGTexture::AnisotropyNone; +} + void QSGOpenVGImageNode::setTextureCoordinatesTransform(QSGImageNode::TextureCoordinatesTransformMode transformNode) { if (m_transformMode == transformNode) @@ -284,7 +293,7 @@ void QSGOpenVGImageNode::render() vgSeti(VG_MATRIX_MODE, VG_MATRIX_IMAGE_USER_TO_SURFACE); vgLoadMatrix(transform().constData()); - VGImage image = static_cast<VGImage>(m_texture->textureId()); + VGImage image = static_cast<VGImage>(m_texture->comparisonKey()); //Apply the TextureCoordinateTransform Flag if (m_transformMode != QSGImageNode::NoTransform) { @@ -390,7 +399,7 @@ void QSGOpenVGNinePatchNode::render() vgSeti(VG_MATRIX_MODE, VG_MATRIX_IMAGE_USER_TO_SURFACE); vgLoadMatrix(transform().constData()); - VGImage image = static_cast<VGImage>(m_texture->textureId()); + VGImage image = static_cast<VGImage>(m_texture->comparisonKey()); //Draw borderImage QSGOpenVGHelpers::qDrawBorderImage(image, m_texture->textureSize(), m_bounds, m_bounds.marginsRemoved(m_margins), QRectF(0, 0, 1, 1)); |