diff options
| author | Mikko Gronoff <mikko.gronoff@qt.io> | 2019-09-20 10:28:20 +0300 |
|---|---|---|
| committer | Mikko Gronoff <mikko.gronoff@qt.io> | 2019-09-24 15:07:34 +0300 |
| commit | 61d0a61f4a19521b7b3d4379839210c0ad0bebb1 (patch) | |
| tree | 8b61d218cabcd4f901213b914565ff7fb9f4c30f | |
| parent | 35fa091938fcffbc5efd0c79ae2221e67bd0ae97 (diff) | |
| download | meta-qt5-61d0a61f4a19521b7b3d4379839210c0ad0bebb1.tar.gz | |
ogl-runtime: update to v2.5.0-beta1
Change-Id: I76cfb6cab1d0b997b05967398e0863bad08a4e0e
Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
| -rw-r--r-- | recipes-qt/qt5/ogl-runtime/0002-Adapt-distance-field-cache-to-5.14.patch | 50 | ||||
| -rw-r--r-- | recipes-qt/qt5/ogl-runtime_git.bb | 3 |
2 files changed, 1 insertions, 52 deletions
diff --git a/recipes-qt/qt5/ogl-runtime/0002-Adapt-distance-field-cache-to-5.14.patch b/recipes-qt/qt5/ogl-runtime/0002-Adapt-distance-field-cache-to-5.14.patch deleted file mode 100644 index 619a49e0..00000000 --- a/recipes-qt/qt5/ogl-runtime/0002-Adapt-distance-field-cache-to-5.14.patch +++ /dev/null | |||
| @@ -1,50 +0,0 @@ | |||
| 1 | From e177fb4a0fcf4068cef6a0e018cd98e00f248a13 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Laszlo Agocs <laszlo.agocs@qt.io> | ||
| 3 | Date: Tue, 13 Aug 2019 10:13:47 +0200 | ||
| 4 | Subject: [PATCH] Adapt distance field cache to 5.14 | ||
| 5 | |||
| 6 | There is a new pure virtual in the base class in 5.14. It is not very | ||
| 7 | relevant here since this glyph cache is not used in combination with | ||
| 8 | the df text materials of Qt Quick. We can nonetheless implement the | ||
| 9 | virtual and return the correct value. | ||
| 10 | |||
| 11 | Task-number: QT3DS-3856 | ||
| 12 | Change-Id: I97b807ec73a664488b63c8888bc8cd90a9c53589 | ||
| 13 | --- | ||
| 14 | src/runtimerender/Qt3DSDistanceFieldGlyphCache.cpp | 7 +++++++ | ||
| 15 | src/runtimerender/Qt3DSDistanceFieldGlyphCache_p.h | 4 ++++ | ||
| 16 | 2 files changed, 11 insertions(+) | ||
| 17 | |||
| 18 | diff --git a/src/runtimerender/Qt3DSDistanceFieldGlyphCache.cpp b/src/runtimerender/Qt3DSDistanceFieldGlyphCache.cpp | ||
| 19 | index e945335..52f01ea 100644 | ||
| 20 | --- a/src/runtimerender/Qt3DSDistanceFieldGlyphCache.cpp | ||
| 21 | +++ b/src/runtimerender/Qt3DSDistanceFieldGlyphCache.cpp | ||
| 22 | @@ -513,6 +513,13 @@ bool Q3DSDistanceFieldGlyphCache::loadPregeneratedCache(const QRawFont &font) | ||
| 23 | return true; | ||
| 24 | } | ||
| 25 | |||
| 26 | +#if QT_VERSION >= QT_VERSION_CHECK(5,14,0) | ||
| 27 | +bool Q3DSDistanceFieldGlyphCache::eightBitFormatIsAlphaSwizzled() const | ||
| 28 | +{ | ||
| 29 | + return m_context.GetRenderContext().GetRenderContextType() == qt3ds::render::NVRenderContextValues::GLES2; | ||
| 30 | +} | ||
| 31 | +#endif // QT_VERSION >= QT_VERSION_CHECK(5,14,0) | ||
| 32 | + | ||
| 33 | QT_END_NAMESPACE | ||
| 34 | |||
| 35 | #endif // QT_VERSION >= QT_VERSION_CHECK(5,12,2) | ||
| 36 | diff --git a/src/runtimerender/Qt3DSDistanceFieldGlyphCache_p.h b/src/runtimerender/Qt3DSDistanceFieldGlyphCache_p.h | ||
| 37 | index 679d3ad..fb4826e 100644 | ||
| 38 | --- a/src/runtimerender/Qt3DSDistanceFieldGlyphCache_p.h | ||
| 39 | +++ b/src/runtimerender/Qt3DSDistanceFieldGlyphCache_p.h | ||
| 40 | @@ -76,6 +76,10 @@ public: | ||
| 41 | |||
| 42 | qreal fontSize() const; | ||
| 43 | |||
| 44 | +#if QT_VERSION >= QT_VERSION_CHECK(5,14,0) | ||
| 45 | + bool eightBitFormatIsAlphaSwizzled() const override; | ||
| 46 | +#endif | ||
| 47 | + | ||
| 48 | private: | ||
| 49 | bool loadPregeneratedCache(const QRawFont &font); | ||
| 50 | TextureInfo *textureInfo(int index) const; | ||
diff --git a/recipes-qt/qt5/ogl-runtime_git.bb b/recipes-qt/qt5/ogl-runtime_git.bb index 58d31e98..621d0e24 100644 --- a/recipes-qt/qt5/ogl-runtime_git.bb +++ b/recipes-qt/qt5/ogl-runtime_git.bb | |||
| @@ -17,10 +17,9 @@ PV = "2.5+git${SRCPV}" | |||
| 17 | SRC_URI += " \ | 17 | SRC_URI += " \ |
| 18 | ${QT_GIT}/qt3dstudio-eastl.git;name=EASTL;branch=${QT_MODULE_BRANCH_EASTL};protocol=${QT_GIT_PROTOCOL};destsuffix=git/src/3rdparty/EASTL \ | 18 | ${QT_GIT}/qt3dstudio-eastl.git;name=EASTL;branch=${QT_MODULE_BRANCH_EASTL};protocol=${QT_GIT_PROTOCOL};destsuffix=git/src/3rdparty/EASTL \ |
| 19 | file://0001-Fix-examples-build-error.patch \ | 19 | file://0001-Fix-examples-build-error.patch \ |
| 20 | file://0002-Adapt-distance-field-cache-to-5.14.patch \ | ||
| 21 | " | 20 | " |
| 22 | 21 | ||
| 23 | SRCREV_ogl-runtime = "bd488ea03ec4a969e86c55909c60deecdc9f9af2" | 22 | SRCREV_ogl-runtime = "0ab6e1fb491cbc9aa821e11a1ee78915f61ee499" |
| 24 | SRCREV_EASTL = "31697c758f2ed19bd7c6bbe61f1b91f9e12035b5" | 23 | SRCREV_EASTL = "31697c758f2ed19bd7c6bbe61f1b91f9e12035b5" |
| 25 | SRCREV = "${SRCREV_ogl-runtime}" | 24 | SRCREV = "${SRCREV_ogl-runtime}" |
| 26 | 25 | ||
