OpenGLTest.cpp revision 258b733eff83eef487cf6e0840281fe0569f4b48
/* $Id$ */
/** @file
* VBox host opengl support test - generic implementation.
*/
/*
* Copyright (C) 2009-2012 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*/
#include <VBox/VBoxOGLTest.h>
{
if (RTEnvExist("VBOX_CROGL_FORCE_SUPPORTED"))
{
LogRel(("VBOX_CROGL_FORCE_SUPPORTED is specified, skipping 3D test, and treating as supported\n"));
return true;
}
static char pszVBoxPath[RTPATH_MAX];
int rc;
#if defined(RT_OS_WINDOWS) || defined(RT_OS_OS2)
#else
#endif
AssertRCReturn(rc, false);
if (RT_FAILURE(rc))
return false;
StartTS = RTTimeMilliTS();
while (1)
{
if (rc != VERR_PROCESS_RUNNING)
break;
#ifndef DEBUG_misha
{
RTThreadSleep(100);
return false;
}
#endif
RTThreadSleep(100);
}
if (RT_SUCCESS(rc))
{
{
return true;
}
}
return false;
}