public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/libQGLViewer] epel10: Add qreal support patch
@ 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 : 1b81eb6b752165189a75cda0984d8bea84554694
Author : Rich Mattes <richmattes@gmail.com>
Date   : 2018-08-12T09:51:37-04:00
Stats  : +25/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/libQGLViewer/c/1b81eb6b752165189a75cda0984d8bea84554694?branch=epel10

Log:
Add qreal support patch

---
diff --git a/libQGLViewer-2.6.4-qreal.patch b/libQGLViewer-2.6.4-qreal.patch
new file mode 100644
index 0000000..0eda4c6
--- /dev/null
+++ b/libQGLViewer-2.6.4-qreal.patch
@@ -0,0 +1,24 @@
+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;
++//	}
+ 	//@}
+ 
+ 	/*! @name Algebraic computations */

diff --git a/libQGLViewer.spec b/libQGLViewer.spec
index b281e07..8a7318b 100644
--- a/libQGLViewer.spec
+++ b/libQGLViewer.spec
@@ -11,7 +11,7 @@ Source0:        http://www.libqglviewer.com/src/%{name}-%{version}.tar.gz
 # QGLViewer/VRender/gpc.cpp uses exit(0) to "abort" from a failure of malloc
 # Use abort() instead.
 Patch0:         libQGLViewer-2.6.3-exit.patch
-
+Patch1:         libQGLViewer-2.6.4-qreal.patch
 # libQGLViewer .pro files explicitely remove "-g" from compile flags. Make
 # them back.
 Patch1:         libQGLViewer-2.6.3-dbg.patch

^ 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: Add qreal support patch Rich Mattes

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