Index: /trunk/src/VBox/Additions/common/crOpenGL/load.c
===================================================================
--- /trunk/src/VBox/Additions/common/crOpenGL/load.c	(revision 46527)
+++ /trunk/src/VBox/Additions/common/crOpenGL/load.c	(revision 46528)
@@ -48,8 +48,4 @@
 #endif
 
-#ifdef WINDOWS
-static char* gsViewportHackApps[] = {"googleearth.exe", NULL};
-#endif
-
 static bool stub_initialized = 0;
 #ifdef WINDOWS
@@ -247,18 +243,5 @@
     stubCheckWindowsState();
     /* call the original SPU glViewport function */
-    if (!stub.viewportHack)
-    {
-        origViewport(x, y, w, h);
-    }
-    else
-    {
-        ContextInfo *context = stubGetCurrentContext();
-        int winX, winY;
-        unsigned int winW, winH;
-        WindowInfo *pWindow;
-        pWindow = context->currentDrawable;
-        stubGetWindowGeometry(pWindow, &winX, &winY, &winW, &winH);
-        origViewport(0, 0, winW, winH);
-    }
+    origViewport(x, y, w, h);
 }
 
@@ -305,6 +288,4 @@
         stub.spuDispatch.Viewport = trapViewport;
 
-        if (stub.viewportHack)
-            stub.spuDispatch.Scissor = trapScissor;
         /*stub.spuDispatch.SwapBuffers = trapSwapBuffers;
         stub.spuDispatch.DrawBuffer = trapDrawBuffer;*/
@@ -753,28 +734,9 @@
     crNetSetKey(key,sizeof(key));
     stub.force_pbuffers = 0;
-    stub.viewportHack = 0;
-
-#ifdef WINDOWS
-    {
-        char name[1000];
-        int i;
-
+
+#ifdef WINDOWS
 # ifdef VBOX_WITH_WDDM
-        stub.bRunningUnderWDDM = false;
+    stub.bRunningUnderWDDM = false;
 # endif
-        /* Apply viewport hack only if we're running under wine */
-        if (NULL!=GetModuleHandle("wined3d.dll") || NULL != GetModuleHandle("wined3dwddm.dll"))
-        {
-            crGetProcName(name, 1000);
-            for (i=0; gsViewportHackApps[i]; ++i)
-            {
-                if (!stricmp(name, gsViewportHackApps[i]))
-                {
-                    stub.viewportHack = 1;
-                    break;
-                }
-            }
-        }
-    }
 #endif
 }
Index: /trunk/src/VBox/Additions/common/crOpenGL/stub.h
===================================================================
--- /trunk/src/VBox/Additions/common/crOpenGL/stub.h	(revision 46527)
+++ /trunk/src/VBox/Additions/common/crOpenGL/stub.h	(revision 46528)
@@ -223,5 +223,4 @@
     char *spu_dir;
     int force_pbuffers;
-    int viewportHack;
 
     /* thread safety stuff */
