From 0c9ccee1ee4773dfa1c5c68b70efef69148e2258 Mon Sep 17 00:00:00 2001 From: zeising Date: Tue, 1 May 2018 17:45:53 +0000 Subject: Fix GL context creation Add patch from upstream to fix errors in creating GL context. See Upstream issue for details: https://github.com/jwilm/alacritty/issues/921 PR: 227846 Submitted by: Sascha Holzleiter MFH: 2018Q2 --- x11/alacritty/Makefile | 2 +- x11/alacritty/files/patch-src_window.rs | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 x11/alacritty/files/patch-src_window.rs diff --git a/x11/alacritty/Makefile b/x11/alacritty/Makefile index ffe7e4bd0b15..9333f2754ca1 100644 --- a/x11/alacritty/Makefile +++ b/x11/alacritty/Makefile @@ -2,7 +2,7 @@ PORTNAME= alacritty PORTVERSION= g20180126 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= x11 MAINTAINER= zeising@FreeBSD.org diff --git a/x11/alacritty/files/patch-src_window.rs b/x11/alacritty/files/patch-src_window.rs new file mode 100644 index 000000000000..8b3453dd674c --- /dev/null +++ b/x11/alacritty/files/patch-src_window.rs @@ -0,0 +1,10 @@ +--- src/window.rs.orig 2018-04-23 07:37:25 UTC ++++ src/window.rs +@@ -200,6 +200,7 @@ impl Window { + .with_transparency(true) + .with_decorations(window_config.decorations()); + let context = ContextBuilder::new() ++ .with_srgb(true) + .with_vsync(true); + let window = ::glutin::GlWindow::new(window, context, &event_loop)?; + window.show(); -- cgit