VirtualBox

Ignore:
Timestamp:
Aug 30, 2012 11:32:06 AM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
80458
Message:

crOpenGL: allow skipping the 3D support check via env var setting

Location:
trunk/src/VBox/HostServices/SharedOpenGL/OpenGLTest
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedOpenGL/OpenGLTest/OpenGLTest.cpp

    r40845 r43098  
    2525#include <iprt/time.h>
    2626#include <iprt/thread.h>
     27#include <iprt/env.h>
     28#include <iprt/log.h>
    2729
    2830#include <VBox/VBoxOGLTest.h>
     
    3032bool RTCALL VBoxOglIs3DAccelerationSupported()
    3133{
     34    if (RTEnvGet("VBOX_CROGL_FORCE_SUPPORTED"))
     35    {
     36        LogRel(("VBOX_CROGL_FORCE_SUPPORTED is specified, skipping 3D test, and treating as supported\n"));
     37        return true;
     38    }
     39
    3240    static char pszVBoxPath[RTPATH_MAX];
    3341    const char *papszArgs[4] = { NULL, "-test", "3D", NULL};
     
    5866            break;
    5967
     68#ifndef DEBUG_misha
    6069        if (RTTimeMilliTS() - StartTS > 30*1000 /* 30 sec */)
    6170        {
     
    6574            return false;
    6675        }
     76#endif
    6777        RTThreadSleep(100);
    6878    }
  • trunk/src/VBox/HostServices/SharedOpenGL/OpenGLTest/OpenGLTestDarwin.cpp

    r40845 r43098  
    2525# include <iprt/log.h>
    2626#endif /* VBOX_WITH_COCOA_QT */
     27#include <iprt/env.h>
     28#include <iprt/log.h>
    2729
    2830#include <VBox/VBoxOGLTest.h>
     
    3032bool RTCALL VBoxOglIs3DAccelerationSupported()
    3133{
     34    if (RTEnvGet("VBOX_CROGL_FORCE_SUPPORTED"))
     35    {
     36        LogRel(("VBOX_CROGL_FORCE_SUPPORTED is specified, skipping 3D test, and treating as supported\n"));
     37        return true;
     38    }
     39
    3240    CGDirectDisplayID   display = CGMainDisplayID ();
    3341    CGOpenGLDisplayMask cglDisplayMask = CGDisplayIDToOpenGLDisplayMask (display);
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette