From 343777e749447866f7a6e16932ff91ecc359d35f Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Sat, 2 Jan 2021 20:11:50 +0000 Subject: [PATCH] OSX: Temporary bodge for WindowQuartzSubdriver::SetPortAlphaOpaque issue --- src/video/cocoa/wnd_quartz.mm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/video/cocoa/wnd_quartz.mm b/src/video/cocoa/wnd_quartz.mm index fbb8db77cf..2ae2f82f16 100644 --- a/src/video/cocoa/wnd_quartz.mm +++ b/src/video/cocoa/wnd_quartz.mm @@ -507,6 +507,8 @@ void WindowQuartzSubdriver::SetPortAlphaOpaque() uint32 *pixels = (uint32*)this->window_buffer; uint32 pitch = this->window_width; + if (pixels == nullptr) return; + for (int y = 0; y < this->window_height; y++) for (int x = 0; x < this->window_width; x++) { pixels[y * pitch + x] |= 0xFF000000;