aboutsummaryrefslogtreecommitdiffstats
path: root/community/mupen64plus/fix-null-usage.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/mupen64plus/fix-null-usage.patch')
-rw-r--r--community/mupen64plus/fix-null-usage.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/community/mupen64plus/fix-null-usage.patch b/community/mupen64plus/fix-null-usage.patch
new file mode 100644
index 00000000000..5ea67aef47c
--- /dev/null
+++ b/community/mupen64plus/fix-null-usage.patch
@@ -0,0 +1,23 @@
+needed for musl-1.2.3
+diff --git a/source/mupen64plus-video-glide64mk2/src/Glide64/Main.cpp b/source/mupen64plus-video-glide64mk2/src/Glide64/Main.cpp
+index 58cf44d..7997659 100644
+--- a/source/mupen64plus-video-glide64mk2/src/Glide64/Main.cpp
++++ b/source/mupen64plus-video-glide64mk2/src/Glide64/Main.cpp
+@@ -1184,7 +1184,7 @@ int InitGfx ()
+ char strSstWinOpenExt[] ="grSstWinOpenExt";
+ GRWINOPENEXT grSstWinOpenExt = (GRWINOPENEXT)grGetProcAddress(strSstWinOpenExt);
+ if (grSstWinOpenExt)
+- gfx_context = grSstWinOpenExt ((uintptr_t)NULL,
++ gfx_context = grSstWinOpenExt ((uintptr_t)0,
+ res_data,
+ GR_REFRESH_60Hz,
+ GR_COLORFORMAT_RGBA,
+@@ -1194,7 +1194,7 @@ int InitGfx ()
+ 1); // 1 auxillary buffer
+ }
+ if (!gfx_context)
+- gfx_context = grSstWinOpen ((uintptr_t)NULL,
++ gfx_context = grSstWinOpen ((uintptr_t)0,
+ res_data,
+ GR_REFRESH_60Hz,
+ GR_COLORFORMAT_RGBA,