summarylogtreecommitdiffstats
path: root/0001-bugfix-lag.cpp-fix-opengl-context-creation.patch
blob: 01db82681b7dc719b25b3a95192a21d677eb9faa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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