From 3bb723312c471eda5ea5b3c7da486ad83dfdfcd3 Mon Sep 17 00:00:00 2001 From: Olaf Seibert Date: Mon, 26 Oct 2020 20:17:36 +0100 Subject: [PATCH] denise: actually add patch file. --- .../patches/patch-driver_video_opengl_bind.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 denise/patches/patch-driver_video_opengl_bind.h 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);