mirror of
https://github.com/termux/termux-packages.git
synced 2024-11-21 20:56:19 +00:00
5b8eff79ee
Remove unused Qt5 packages. Part of #10854. [no ci]
38 lines
1.2 KiB
Diff
38 lines
1.2 KiB
Diff
--- a/qtgraphicaleffects.pro
|
|
+++ b/qtgraphicaleffects.pro
|
|
@@ -1,5 +1,4 @@
|
|
requires(qtHaveModule(quick))
|
|
-requires(contains(QT_CONFIG, opengl))
|
|
|
|
qtHaveModule(quick) {
|
|
QT_FOR_CONFIG += quick-private
|
|
--- a/src/effects/private/qgfxshaderbuilder.cpp
|
|
+++ b/src/effects/private/qgfxshaderbuilder.cpp
|
|
@@ -65,13 +65,18 @@
|
|
// The following code makes the assumption that an OpenGL context the GUI
|
|
// thread will get the same capabilities as the render thread's OpenGL
|
|
// context. Not 100% accurate, but it works...
|
|
+#ifndef QT_NO_OPENGL
|
|
QOpenGLContext context;
|
|
if (!context.create()) {
|
|
+#else
|
|
+ if (true) {
|
|
+#endif
|
|
qDebug() << "failed to acquire GL context to resolve capabilities, using defaults..";
|
|
m_maxBlurSamples = 8; // minimum number of varyings in the ES 2.0 spec.
|
|
return;
|
|
}
|
|
|
|
+#ifndef QT_NO_OPENGL
|
|
QOffscreenSurface surface;
|
|
// In very odd cases, we can get incompatible configs here unless we pass the
|
|
// GL context's format on to the offscreen format.
|
|
@@ -102,6 +107,7 @@
|
|
qDebug() << "failed to acquire GL context to resolve capabilities, using defaults..";
|
|
m_maxBlurSamples = 8; // minimum number of varyings in the ES 2.0 spec.
|
|
}
|
|
+#endif
|
|
}
|
|
|
|
/*
|