MFH: r468774

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

Approved by:	ports-secteam (riggs)
This commit is contained in:
Niclas Zeising 2018-05-05 18:57:24 +00:00
parent 3be16863c9
commit 5f7d55b455
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/branches/2018Q2/; revision=469158
2 changed files with 11 additions and 1 deletions

View File

@ -2,7 +2,7 @@
PORTNAME= alacritty
PORTVERSION= g20180126
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= x11
MAINTAINER= zeising@FreeBSD.org

View File

@ -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();