diff options
author | Felipe Barriga Richards | 2017-01-19 15:19:52 -0300 |
---|---|---|
committer | Felipe Barriga Richards | 2017-01-19 15:19:52 -0300 |
commit | 2298ad693ef17b47579bdfa8c663c4e3041d0927 (patch) | |
tree | f230a610befeb868929fc25d038c7c55cf71ffd4 /0001-bugfix-lag.cpp-fix-opengl-context-creation.patch | |
download | aur-lag-git.tar.gz |
initial commit.
Diffstat (limited to '0001-bugfix-lag.cpp-fix-opengl-context-creation.patch')
-rw-r--r-- | 0001-bugfix-lag.cpp-fix-opengl-context-creation.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/0001-bugfix-lag.cpp-fix-opengl-context-creation.patch b/0001-bugfix-lag.cpp-fix-opengl-context-creation.patch new file mode 100644 index 000000000000..01db82681b7d --- /dev/null +++ b/0001-bugfix-lag.cpp-fix-opengl-context-creation.patch @@ -0,0 +1,29 @@ +From 53e9fcf99e0b2dad3fcc4cf7c2d1210d022e4c0a Mon Sep 17 00:00:00 2001 +From: Felipe Barriga Richards <spam@felipebarriga.cl> +Date: Thu, 19 Jan 2017 14:13:15 -0300 +Subject: [PATCH] bugfix: lag.cpp: fix opengl context creation. + +--- + src/lag.cpp | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/lag.cpp b/src/lag.cpp +index 06b9569..12dc755 100644 +--- a/src/lag.cpp ++++ b/src/lag.cpp +@@ -179,10 +179,10 @@ int main(int argc, char** argv) + Glib::RefPtr < Gdk::GL::Config > glconfig; + + glconfig = Gdk::GL::Config::create(Gdk::GL::MODE_RGB | Gdk::GL::MODE_DEPTH | Gdk::GL::MODE_DOUBLE); +- if(glconfig == 0) ++ if(!glconfig) + { + glconfig = Gdk::GL::Config::create(Gdk::GL::MODE_RGB | Gdk::GL::MODE_DEPTH); +- if(glconfig == 0) ++ if(!glconfig) + { + cout << "Cannot intialise OpenGL. Exiting." << endl; + std::exit(1); +-- +2.11.0 + |