Changeset 43098 in vbox for trunk/src/VBox/HostServices/SharedOpenGL/OpenGLTest
- Timestamp:
- Aug 30, 2012 11:32:06 AM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 80458
- Location:
- trunk/src/VBox/HostServices/SharedOpenGL/OpenGLTest
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedOpenGL/OpenGLTest/OpenGLTest.cpp
r40845 r43098 25 25 #include <iprt/time.h> 26 26 #include <iprt/thread.h> 27 #include <iprt/env.h> 28 #include <iprt/log.h> 27 29 28 30 #include <VBox/VBoxOGLTest.h> … … 30 32 bool RTCALL VBoxOglIs3DAccelerationSupported() 31 33 { 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 32 40 static char pszVBoxPath[RTPATH_MAX]; 33 41 const char *papszArgs[4] = { NULL, "-test", "3D", NULL}; … … 58 66 break; 59 67 68 #ifndef DEBUG_misha 60 69 if (RTTimeMilliTS() - StartTS > 30*1000 /* 30 sec */) 61 70 { … … 65 74 return false; 66 75 } 76 #endif 67 77 RTThreadSleep(100); 68 78 } -
trunk/src/VBox/HostServices/SharedOpenGL/OpenGLTest/OpenGLTestDarwin.cpp
r40845 r43098 25 25 # include <iprt/log.h> 26 26 #endif /* VBOX_WITH_COCOA_QT */ 27 #include <iprt/env.h> 28 #include <iprt/log.h> 27 29 28 30 #include <VBox/VBoxOGLTest.h> … … 30 32 bool RTCALL VBoxOglIs3DAccelerationSupported() 31 33 { 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 32 40 CGDirectDisplayID display = CGMainDisplayID (); 33 41 CGOpenGLDisplayMask cglDisplayMask = CGDisplayIDToOpenGLDisplayMask (display);
Note:
See TracChangeset
for help on using the changeset viewer.