qgis/qgis-check-if-maxcliplanes-is-defined.patch
Dirk Stoecker 79cf6f94e5 - Update to 3.42.0
* See https://changelog.qgis.org/en/qgis/version/3.42/ and
    https://github.com/qgis/QGIS/compare/final-3_40_3...final-3_42_0
    for changes
  * Add new patch to fix building with aarch64
  * Changes from 1250405: Change patch designation of the new patch to PATCH-FIX-UPSTREAM

OBS-URL: https://build.opensuse.org/package/show/Application:Geo/qgis?expand=0&rev=414
2025-03-06 09:37:28 +00:00

21 lines
581 B
Diff

diff --git i/src/3d/qgs3dutils.cpp w/src/3d/qgs3dutils.cpp
index 053c9458611..78ab57b9915 100644
--- i/src/3d/qgs3dutils.cpp
+++ w/src/3d/qgs3dutils.cpp
@@ -972,6 +972,7 @@ int Qgs3DUtils::openGlMaxClipPlanes( QSurface *surface )
{
int numPlanes = 6;
+#ifdef GL_MAX_CLIP_PLANES
QOpenGLContext context;
context.setFormat( QSurfaceFormat::defaultFormat() );
if ( context.create() )
@@ -982,6 +983,7 @@ int Qgs3DUtils::openGlMaxClipPlanes( QSurface *surface )
funcs->glGetIntegerv( GL_MAX_CLIP_PLANES, &numPlanes );
}
}
+#endif
return numPlanes;
}