[arrayfire] 147/284: Fix AF_DISABLE_GRAPHICS condition (Fixes e19a6be)

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Sun Feb 7 18:59:28 UTC 2016


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch debian/experimental
in repository arrayfire.

commit 8cb21a432c4957af96125fe844f48fe84dc5f345
Author: Shehzan Mohammed <shehzan at arrayfire.com>
Date:   Fri Jan 1 21:24:54 2016 -0500

    Fix AF_DISABLE_GRAPHICS condition (Fixes e19a6be)
---
 src/api/c/graphics_common.cpp   | 2 +-
 src/backend/opencl/platform.cpp | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/api/c/graphics_common.cpp b/src/api/c/graphics_common.cpp
index 291bf84..dc5a46b 100644
--- a/src/api/c/graphics_common.cpp
+++ b/src/api/c/graphics_common.cpp
@@ -147,7 +147,7 @@ fg::Window* ForgeManager::getMainWindow(const bool dontCreate)
 
     // Define AF_DISABLE_GRAPHICS with any value to disable initialization
     std::string noGraphicsENV = getEnvVar("AF_DISABLE_GRAPHICS");
-    if(!noGraphicsENV.empty()) { // If AF_DISABLE_GRAPHICS is not defined
+    if(noGraphicsENV.empty()) { // If AF_DISABLE_GRAPHICS is not defined
         if (flag && !dontCreate) {
             wnd = new fg::Window(WIDTH, HEIGHT, "ArrayFire", NULL, true);
             CheckGL("End ForgeManager::getMainWindow");
diff --git a/src/backend/opencl/platform.cpp b/src/backend/opencl/platform.cpp
index 8d77e24..0cd46d2 100644
--- a/src/backend/opencl/platform.cpp
+++ b/src/backend/opencl/platform.cpp
@@ -174,7 +174,7 @@ DeviceManager::DeviceManager()
 #if defined(WITH_GRAPHICS)
     // Define AF_DISABLE_GRAPHICS with any value to disable initialization
     std::string noGraphicsENV = getEnvVar("AF_DISABLE_GRAPHICS");
-    if(!noGraphicsENV.empty()) { // If AF_DISABLE_GRAPHICS is not defined
+    if(noGraphicsENV.empty()) { // If AF_DISABLE_GRAPHICS is not defined
         try {
             int devCount = mDevices.size();
             fg::Window* wHandle = graphics::ForgeManager::getInstance().getMainWindow();

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/arrayfire.git



More information about the debian-science-commits mailing list