public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/libQGLViewer] epel10: Conditionally enable float() operator
@ 2026-11-30 13:55 Rich Mattes
  0 siblings, 0 replies; only message in thread
From: Rich Mattes @ 2026-11-30 13:55 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/libQGLViewer
Branch : epel10
Commit : 79d2247fe556c6e9e0f22c25f1332144adee5178
Author : Rich Mattes <richmattes@gmail.com>
Date   : 2018-08-12T09:59:52-04:00
Stats  : +17/-20 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/libQGLViewer/c/79d2247fe556c6e9e0f22c25f1332144adee5178?branch=epel10

Log:
Conditionally enable float() operator

---
diff --git a/libQGLViewer-2.6.4-qreal.patch b/libQGLViewer-2.6.4-qreal.patch
index 0eda4c6..4ec9512 100644
--- a/libQGLViewer-2.6.4-qreal.patch
+++ b/libQGLViewer-2.6.4-qreal.patch
@@ -1,24 +1,21 @@
 diff -up ./QGLViewer/vec.h.qreal ./QGLViewer/vec.h
 --- ./QGLViewer/vec.h.qreal	2018-08-12 09:48:47.564866881 -0400
-+++ ./QGLViewer/vec.h	2018-08-12 09:50:16.732120711 -0400
-@@ -196,13 +196,13 @@ public:
-   glVertex3fv(pos);
-   \endcode
-   \note The returned float array is a static shared by all \c Vec instances. */
--	operator const float*() const {
--		static float* const result = new float[3];
--		result[0] = (float)x;
--		result[1] = (float)y;
--		result[2] = (float)z;
--		return result;
--	}
-+//	operator const float*() const {
-+//		static float* const result = new float[3];
-+//		result[0] = (float)x;
-+//		result[1] = (float)y;
-+//		result[2] = (float)z;
-+//		return result;
-+//	}
- 	//@}
++++ ./QGLViewer/vec.h	2018-08-12 09:59:20.133918155 -0400
+@@ -187,6 +187,8 @@ public:
+ #endif
+ 	}
+ 
++// only enable on platforms where qreal is defined as double
++#ifndef __arm__
+ 	/*! Conversion operator returning the memory address of the vector.
  
+   Very convenient to pass a Vec pointer as a \c float parameter to OpenGL functions:
+@@ -204,7 +206,7 @@ public:
+ 		return result;
+ 	}
+ 	//@}
+-
++#endif
  	/*! @name Algebraic computations */
+ 	//@{
+ 	/*! Returns the sum of the two vectors. */

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-30 13:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-30 13:55 [rpms/libQGLViewer] epel10: Conditionally enable float() operator Rich Mattes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox