From c697f921abc965ab3a4082f86da87695cfc9fe12 Mon Sep 17 00:00:00 2001
From: Marco Biasini <marco.biasini@unibas.ch>
Date: Tue, 12 Apr 2011 18:22:00 +0200
Subject: [PATCH] only initialize offscreen buffer on MacOS X

fixes  BZDNG-244
---
 modules/gfx/tests/test_gfx_node.cc | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/modules/gfx/tests/test_gfx_node.cc b/modules/gfx/tests/test_gfx_node.cc
index c32994e10..8a7059f8d 100644
--- a/modules/gfx/tests/test_gfx_node.cc
+++ b/modules/gfx/tests/test_gfx_node.cc
@@ -39,14 +39,18 @@ using namespace ost::gfx;
 struct GfxTestEnv {
   GfxTestEnv()
   {
+#if defined(__APPLE__)    
     // we know OST_ROOT is set for unit tests
     SetPrefixPath(getenv("OST_ROOT"));
     Scene::Instance().StartOffscreenMode(100, 100);
+#endif
   }
   
   ~GfxTestEnv()
   {
+#if defined(__APPLE__)
     Scene::Instance().StopOffscreenMode();
+#endif
   }
 
 };
-- 
GitLab