Skip to content
Snippets Groups Projects
Commit c697f921 authored by Marco Biasini's avatar Marco Biasini
Browse files

only initialize offscreen buffer on MacOS X

fixes  BZDNG-244
parent 3ca769bc
No related branches found
No related tags found
No related merge requests found
...@@ -39,14 +39,18 @@ using namespace ost::gfx; ...@@ -39,14 +39,18 @@ using namespace ost::gfx;
struct GfxTestEnv { struct GfxTestEnv {
GfxTestEnv() GfxTestEnv()
{ {
#if defined(__APPLE__)
// we know OST_ROOT is set for unit tests // we know OST_ROOT is set for unit tests
SetPrefixPath(getenv("OST_ROOT")); SetPrefixPath(getenv("OST_ROOT"));
Scene::Instance().StartOffscreenMode(100, 100); Scene::Instance().StartOffscreenMode(100, 100);
#endif
} }
~GfxTestEnv() ~GfxTestEnv()
{ {
#if defined(__APPLE__)
Scene::Instance().StopOffscreenMode(); Scene::Instance().StopOffscreenMode();
#endif
} }
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment