pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/53759: [PATCH] devel/SDL2: Fixes missing rendering on macOS 10.14 ("Mojave")
>Number: 53759
>Category: pkg
>Synopsis: [PATCH] devel/SDL2: Fixes missing rendering on macOS 10.14 ("Mojave")
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Dec 01 17:45:00 +0000 2018
>Originator: Jonathan Schleifer
>Release: HEAD
>Organization:
>Environment:
macOS Mojave
>Description:
Any application using SDL2 shows only a black window / screen.
>How-To-Repeat:
Build and run e.g. emulators/fs-uae.
>Fix:
commit bd408b3fca6e5727bbaa5c415758e89701bf6a1c
Author: Jonathan Schleifer <js%heap.zone@localhost>
Date: Sat Dec 1 18:38:29 2018 +0100
devel/SDL2: Fix missing rendering on macOS 10.14
diff --git a/devel/SDL2/Makefile b/devel/SDL2/Makefile
index 0c9461fef23..18e6e1c5e05 100644
--- a/devel/SDL2/Makefile
+++ b/devel/SDL2/Makefile
@@ -1,6 +1,7 @@
# $NetBSD: Makefile,v 1.31 2018/11/01 21:08:28 adam Exp $
DISTNAME= SDL2-2.0.9
+PKGREVISION= 1
CATEGORIES= devel
MASTER_SITES= http://www.libsdl.org/release/
diff --git a/devel/SDL2/distinfo b/devel/SDL2/distinfo
index 6e3b463ba00..0d9df2f7358 100644
--- a/devel/SDL2/distinfo
+++ b/devel/SDL2/distinfo
@@ -7,4 +7,5 @@ Size (SDL2-2.0.9.tar.gz) = 5246942 bytes
SHA1 (patch-configure) = 5637a66f8890586026034f5324829e61c94ac5be
SHA1 (patch-src_audio_netbsd_SDL__netbsdaudio.c) = 7a1f32ea7029f8dc99aecfaead7c68f2fd6cb230
SHA1 (patch-src_joystick_bsd_SDL__sysjoystick.c) = 152b5df76a91c7e7acde126b1464fdd464cf1ba2
+SHA1 (patch-src_video_cocoa_SDL__cocoawindow.m) = 1d5ac9c17ceadf668925734b5cad311e26f2fc58
SHA1 (patch-src_video_x11_SDL__x11opengl.c) = 70b63021c12c52760c0811c673b259844bdfcdc0
diff --git a/devel/SDL2/patches/patch-src_video_cocoa_SDL__cocoawindow.m b/devel/SDL2/patches/patch-src_video_cocoa_SDL__cocoawindow.m
new file mode 100644
index 00000000000..b0172e7f405
--- /dev/null
+++ b/devel/SDL2/patches/patch-src_video_cocoa_SDL__cocoawindow.m
@@ -0,0 +1,24 @@
+$NetBSD$
+
+# HG changeset patch
+# User Ryan C. Gordon <icculus%icculus.org@localhost>
+# Date 1538007032 14400
+# Node ID 55489adbb75c8eb7c7719a3f9c85a15d06df2f27
+# Parent 21c0605222581aa820dbb19db987c5dc0d497239
+cocoa: Force an OpenGL context update when the window becomes key.
+
+Fixes missing rendering on macOS 10.14 ("Mojave").
+
+Fixes Bugzilla #4272.
+
+--- src/video/cocoa/SDL_cocoawindow.m.orig 2018-10-31 15:07:22.000000000 +0000
++++ src/video/cocoa/SDL_cocoawindow.m
+@@ -632,6 +632,8 @@ SetWindowStyle(SDL_Window * window, NSUI
+ const unsigned int newflags = [NSEvent modifierFlags] & NSEventModifierFlagCapsLock;
+ _data->videodata->modifierFlags = (_data->videodata->modifierFlags & ~NSEventModifierFlagCapsLock) | newflags;
+ SDL_ToggleModState(KMOD_CAPS, newflags != 0);
++
++ ScheduleContextUpdates(_data);
+ }
+
+ - (void)windowDidResignKey:(NSNotification *)aNotification
Home |
Main Index |
Thread Index |
Old Index