OpenGLTest.cpp revision e45ccb294fc1f6b4078d058eaff86100361a7358
/* $Id$ */
/** @file
* VBox host opengl support test - generic implementation.
*/
/*
* Copyright (C) 2009 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.
*/
bool is3DAccelerationSupported()
{
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;
{
RTThreadSleep(100);
return false;
}
RTThreadSleep(100);
}
if (RT_SUCCESS(rc))
{
{
return true;
}
}
return false;
}