File: 0002-Redirect-infinitePerspective-LH-RH-to-_NO-variant.patch

package info (click to toggle)
python-pyglm 2.8.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,008 kB
  • sloc: cpp: 53,029; python: 3,683; makefile: 7
file content (35 lines) | stat: -rw-r--r-- 2,149 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
From: =?utf-8?q?Timo_R=C3=B6hling?= <roehling@debian.org>
Date: Thu, 11 Sep 2025 09:25:05 +0200
Subject: Redirect infinitePerspective{LH,RH} to _NO variant

After https://github.com/g-truc/glm/pull/1159, the implementation
was accidentally removed. This patch restores the previous behavior
so that the module has no undefined symbols.
---
 PyGLM_lib/PyGLM/functions/stable_extensions/matrix_clip_space.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/PyGLM_lib/PyGLM/functions/stable_extensions/matrix_clip_space.h b/PyGLM_lib/PyGLM/functions/stable_extensions/matrix_clip_space.h
index c855fc3..3b6e500 100644
--- a/PyGLM_lib/PyGLM/functions/stable_extensions/matrix_clip_space.h
+++ b/PyGLM_lib/PyGLM/functions/stable_extensions/matrix_clip_space.h
@@ -189,8 +189,8 @@ perspectiveFovNO_(PyObject*, PyObject* args) {
 }
 
 PyGLM_MAKE_GLM_FUNC_NNN__tf(infinitePerspective)
-PyGLM_MAKE_GLM_FUNC_NNN__tf(infinitePerspectiveLH)
-PyGLM_MAKE_GLM_FUNC_NNN__tf(infinitePerspectiveRH)
+PyGLM_MAKE_GLM_FUNC_NNN__tf(infinitePerspectiveLH_NO)
+PyGLM_MAKE_GLM_FUNC_NNN__tf(infinitePerspectiveRH_NO)
 
 static PyObject*
 tweakedInfinitePerspective_(PyObject*, PyObject* args) {
@@ -474,6 +474,6 @@ PyDoc_STRVAR(tweakedInfinitePerspective_docstr,
 { "perspectiveFovLH", (PyCFunction)perspectiveFovLH_, METH_VARARGS, perspectiveFovLH_docstr }, \
 { "perspectiveFovRH", (PyCFunction)perspectiveFovRH_, METH_VARARGS, perspectiveFovRH_docstr }, \
 { "infinitePerspective", (PyCFunction)infinitePerspective_, METH_VARARGS, infinitePerspective_docstr }, \
-{ "infinitePerspectiveRH", (PyCFunction)infinitePerspectiveRH_, METH_VARARGS, infinitePerspectiveRH_docstr }, \
-{ "infinitePerspectiveLH", (PyCFunction)infinitePerspectiveLH_, METH_VARARGS, infinitePerspectiveLH_docstr }, \
+{ "infinitePerspectiveRH", (PyCFunction)infinitePerspectiveRH_NO_, METH_VARARGS, infinitePerspectiveRH_docstr }, \
+{ "infinitePerspectiveLH", (PyCFunction)infinitePerspectiveLH_NO_, METH_VARARGS, infinitePerspectiveLH_docstr }, \
 { "tweakedInfinitePerspective", (PyCFunction)tweakedInfinitePerspective_, METH_VARARGS, tweakedInfinitePerspective_docstr }