summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikko Gronoff <mikko.gronoff@qt.io>2019-09-20 10:28:20 +0300
committerMikko Gronoff <mikko.gronoff@qt.io>2019-09-24 15:07:34 +0300
commit61d0a61f4a19521b7b3d4379839210c0ad0bebb1 (patch)
tree8b61d218cabcd4f901213b914565ff7fb9f4c30f
parent35fa091938fcffbc5efd0c79ae2221e67bd0ae97 (diff)
downloadmeta-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.patch50
-rw-r--r--recipes-qt/qt5/ogl-runtime_git.bb3
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 @@
1From e177fb4a0fcf4068cef6a0e018cd98e00f248a13 Mon Sep 17 00:00:00 2001
2From: Laszlo Agocs <laszlo.agocs@qt.io>
3Date: Tue, 13 Aug 2019 10:13:47 +0200
4Subject: [PATCH] Adapt distance field cache to 5.14
5
6There is a new pure virtual in the base class in 5.14. It is not very
7relevant here since this glyph cache is not used in combination with
8the df text materials of Qt Quick. We can nonetheless implement the
9virtual and return the correct value.
10
11Task-number: QT3DS-3856
12Change-Id: I97b807ec73a664488b63c8888bc8cd90a9c53589
13---
14 src/runtimerender/Qt3DSDistanceFieldGlyphCache.cpp | 7 +++++++
15 src/runtimerender/Qt3DSDistanceFieldGlyphCache_p.h | 4 ++++
16 2 files changed, 11 insertions(+)
17
18diff --git a/src/runtimerender/Qt3DSDistanceFieldGlyphCache.cpp b/src/runtimerender/Qt3DSDistanceFieldGlyphCache.cpp
19index 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)
36diff --git a/src/runtimerender/Qt3DSDistanceFieldGlyphCache_p.h b/src/runtimerender/Qt3DSDistanceFieldGlyphCache_p.h
37index 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}"
17SRC_URI += " \ 17SRC_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
23SRCREV_ogl-runtime = "bd488ea03ec4a969e86c55909c60deecdc9f9af2" 22SRCREV_ogl-runtime = "0ab6e1fb491cbc9aa821e11a1ee78915f61ee499"
24SRCREV_EASTL = "31697c758f2ed19bd7c6bbe61f1b91f9e12035b5" 23SRCREV_EASTL = "31697c758f2ed19bd7c6bbe61f1b91f9e12035b5"
25SRCREV = "${SRCREV_ogl-runtime}" 24SRCREV = "${SRCREV_ogl-runtime}"
26 25