Index: /trunk/src/VBox/Main/generic/OpenGLTestApp.cpp
===================================================================
--- /trunk/src/VBox/Main/generic/OpenGLTestApp.cpp	(revision 24003)
+++ /trunk/src/VBox/Main/generic/OpenGLTestApp.cpp	(revision 24004)
@@ -20,8 +20,10 @@
  */
 
+#include <iprt/assert.h>
+#include <iprt/buildconfig.h>
+#include <iprt/err.h>
+#include <iprt/getopt.h>
 #include <iprt/initterm.h>
-#include <iprt/getopt.h>
-#include <iprt/err.h>
-#include <iprt/assert.h>
+#include <iprt/stream.h>
 #ifdef RT_OS_WINDOWS
 #include <Windows.h>
@@ -40,5 +42,5 @@
 static int vboxCheck3DAccelerationSupported()
 {
-    void *spu = crSPULoad(NULL, 0, "render", NULL, NULL);
+    void *spu = crSPULoad(NULL, 0, (char*)"render", NULL, NULL);
     if (spu)
     {
@@ -58,5 +60,5 @@
 {
     static int dummyArgc = 1;
-    static char * dummyArgv = "GlTest";
+    static char * dummyArgv = (char*)"GlTest";
     QApplication app (dummyArgc, &dummyArgv);
 
@@ -81,5 +83,5 @@
     RTR3Init();
 
-    if(argc < 3)
+    if(argc < 2)
     {
 #ifdef VBOX_WITH_CROGL
@@ -94,4 +96,5 @@
             { "--test",           't',   RTGETOPT_REQ_STRING },
             { "-test",            't',   RTGETOPT_REQ_STRING },
+            { "--help",           'h',   RTGETOPT_REQ_NOTHING },
         };
 
@@ -125,7 +128,21 @@
                     rc = 1;
                     break;
+
+                case 'h':
+                    RTPrintf("VirtualBox Helper for testing 2D/3D OpenGL capabilities %u.%u.%u\n"
+                             "(C) 2009 Sun Microsystems, Inc.\n"
+                             "All rights reserved.\n"
+                             "\n"
+                             "Usage:\n"
+                             "\n"
+                             "  VBoxTestOGL [ --test 2D|3D]\n"
+                             "\n",
+                            RTBldCfgVersionMajor(), RTBldCfgVersionMinor(), RTBldCfgVersionBuild());
+                    break;
+
                 case VERR_GETOPT_UNKNOWN_OPTION:
                 case VINF_GETOPT_NOT_OPTION:
                     rc = 1;
+
                 default:
                     break;
