pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

denise: actually add patch file.



Module Name:	pkgsrc-wip
Committed By:	Olaf Seibert <rhialto%falu.nl@localhost>
Pushed By:	rhialto
Date:		Mon Oct 26 20:17:36 2020 +0100
Changeset:	3bb723312c471eda5ea5b3c7da486ad83dfdfcd3

Added Files:
	denise/patches/patch-driver_video_opengl_bind.h

Log Message:
denise: actually add patch file.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=3bb723312c471eda5ea5b3c7da486ad83dfdfcd3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 denise/patches/patch-driver_video_opengl_bind.h | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diffs:
diff --git a/denise/patches/patch-driver_video_opengl_bind.h b/denise/patches/patch-driver_video_opengl_bind.h
new file mode 100644
index 0000000000..df5e2a2a3f
--- /dev/null
+++ b/denise/patches/patch-driver_video_opengl_bind.h
@@ -0,0 +1,19 @@
+$NetBSD$
+
+--- driver/video/opengl/bind.h.orig	2020-10-25 12:34:43.000000000 +0000
++++ driver/video/opengl/bind.h
+@@ -1,4 +1,4 @@
+-#if defined(_WIN32) || defined(__linux__)
++#if defined(_WIN32) || defined(__linux__) || defined(__NetBSD__)
+ 	PFNGLCREATEPROGRAMPROC glCreateProgram = nullptr;
+ 	PFNGLDELETEPROGRAMPROC glDeleteProgram = nullptr;
+ 	PFNGLUSEPROGRAMPROC glUseProgram = nullptr;
+@@ -58,7 +58,7 @@ static bool OpenGLBind() {
+ 		function = (prototype)glGetProcAddress(#function); \
+ 		if(function == nullptr) return false
+ 
+-	#if defined(_WIN32) || defined(__linux__)
++	#if defined(_WIN32) || defined(__linux__) || defined(__NetBSD__)
+ 		bind(PFNGLCREATEPROGRAMPROC, glCreateProgram);
+ 		bind(PFNGLDELETEPROGRAMPROC, glDeleteProgram);
+ 		bind(PFNGLUSEPROGRAMPROC, glUseProgram);


Home | Main Index | Thread Index | Old Index