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
Branches
Tags
No related merge requests found
......@@ -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
}
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment