- Timestamp:
- Oct 23, 2009 6:39:42 AM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 53841
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/generic/OpenGLTestApp.cpp
r23990 r24004 20 20 */ 21 21 22 #include <iprt/assert.h> 23 #include <iprt/buildconfig.h> 24 #include <iprt/err.h> 25 #include <iprt/getopt.h> 22 26 #include <iprt/initterm.h> 23 #include <iprt/getopt.h> 24 #include <iprt/err.h> 25 #include <iprt/assert.h> 27 #include <iprt/stream.h> 26 28 #ifdef RT_OS_WINDOWS 27 29 #include <Windows.h> … … 40 42 static int vboxCheck3DAccelerationSupported() 41 43 { 42 void *spu = crSPULoad(NULL, 0, "render", NULL, NULL);44 void *spu = crSPULoad(NULL, 0, (char*)"render", NULL, NULL); 43 45 if (spu) 44 46 { … … 58 60 { 59 61 static int dummyArgc = 1; 60 static char * dummyArgv = "GlTest";62 static char * dummyArgv = (char*)"GlTest"; 61 63 QApplication app (dummyArgc, &dummyArgv); 62 64 … … 81 83 RTR3Init(); 82 84 83 if(argc < 3)85 if(argc < 2) 84 86 { 85 87 #ifdef VBOX_WITH_CROGL … … 94 96 { "--test", 't', RTGETOPT_REQ_STRING }, 95 97 { "-test", 't', RTGETOPT_REQ_STRING }, 98 { "--help", 'h', RTGETOPT_REQ_NOTHING }, 96 99 }; 97 100 … … 125 128 rc = 1; 126 129 break; 130 131 case 'h': 132 RTPrintf("VirtualBox Helper for testing 2D/3D OpenGL capabilities %u.%u.%u\n" 133 "(C) 2009 Sun Microsystems, Inc.\n" 134 "All rights reserved.\n" 135 "\n" 136 "Usage:\n" 137 "\n" 138 " VBoxTestOGL [ --test 2D|3D]\n" 139 "\n", 140 RTBldCfgVersionMajor(), RTBldCfgVersionMinor(), RTBldCfgVersionBuild()); 141 break; 142 127 143 case VERR_GETOPT_UNKNOWN_OPTION: 128 144 case VINF_GETOPT_NOT_OPTION: 129 145 rc = 1; 146 130 147 default: 131 148 break;
Note:
See TracChangeset
for help on using the changeset viewer.