mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
28 lines
682 B
Plaintext
28 lines
682 B
Plaintext
From 6cdbbab0a5d8323487a69e2b3061e3890d28663b Mon Sep 17 00:00:00 2001
|
|
From: Gerasim Troeglazov <3dEyes@gmail.com>
|
|
Date: Tue, 3 May 2022 16:16:08 +1000
|
|
Subject: Enable GLES for Haiku
|
|
|
|
|
|
diff --git a/src/datavisualization/utils/utils.cpp b/src/datavisualization/utils/utils.cpp
|
|
index 3470c44..a6a2d44 100644
|
|
--- a/src/datavisualization/utils/utils.cpp
|
|
+++ b/src/datavisualization/utils/utils.cpp
|
|
@@ -310,9 +310,13 @@ QQuaternion Utils::calculateRotation(const QVector3D &xyzRotations)
|
|
|
|
bool Utils::isOpenGLES()
|
|
{
|
|
+#ifdef Q_OS_HAIKU
|
|
+ return true;
|
|
+#else
|
|
if (!staticsResolved)
|
|
resolveStatics();
|
|
return isES;
|
|
+#endif
|
|
}
|
|
|
|
void Utils::resolveStatics()
|
|
--
|
|
2.48.1
|
|
|