denise: actually add patch file.

This commit is contained in:
Olaf Seibert 2020-10-26 20:17:36 +01:00
parent 6ae2975beb
commit 3bb723312c
1 changed files with 19 additions and 0 deletions

View File

@ -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);