From 53e9fcf99e0b2dad3fcc4cf7c2d1210d022e4c0a Mon Sep 17 00:00:00 2001 From: Felipe Barriga Richards 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