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
This commit is contained in:
Niclas Zeising 2018-05-01 17:45:53 +00:00
parent f0c2038b3f
commit e88f6b87ec
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=468774
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();