Index: /trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu_cocoa_helper.m
===================================================================
--- /trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu_cocoa_helper.m	(revision 54768)
+++ /trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu_cocoa_helper.m	(revision 54769)
@@ -743,5 +743,7 @@
 @end
 
+#ifndef IN_VMSVGA3D
 @class DockOverlayView;
+#endif
 
 /** 
@@ -768,4 +770,5 @@
     GLuint              m_FBOId;
 
+#ifndef IN_VMSVGA3D
     /** The corresponding dock tile view of this OpenGL view & all helper
      * members. */
@@ -775,4 +778,5 @@
     GLfloat             m_FBOThumbScaleY;
     uint64_t            m_msDockUpdateTS;
+#endif
 
     /** @name For clipping
@@ -832,6 +836,8 @@
 - (void)vboxReshapeOnReparentPerform;
 
+#ifndef IN_VMSVGA3D
 - (void)createDockTile;
 - (void)deleteDockTile;
+#endif
 
 - (void)makeCurrentFBO;
@@ -859,6 +865,8 @@
 - (GLboolean)vboxNeedsEmptyPresent;
 
+#ifndef IN_VMSVGA3D
 - (NSView *)dockTileScreen;
 - (void)reshapeDockTile;
+#endif
 - (void)cleanupData;
 @end
@@ -904,4 +912,5 @@
 
 
+#ifndef IN_VMSVGA3D
 /**
  * Dock overlay view class.
@@ -1059,4 +1068,5 @@
 }
 @end
+#endif /* !IN_VMSVGA3D */
 
 
@@ -1380,5 +1390,7 @@
     COCOA_LOG_FLOW(("%s: self=%p\n", __PRETTY_FUNCTION__, (void *)self));
 
+#ifndef IN_VMSVGA3D
     [self deleteDockTile];
+#endif
 
     [self setGLCtx:nil];
@@ -1652,5 +1664,7 @@
 
     [self vboxReshapePerform];
+#ifndef IN_VMSVGA3D
     [self createDockTile];
+#endif
 
     /* have to rebind GL_TEXTURE_RECTANGLE_ARB as m_FBOTexId could be changed in updateFBO call */
@@ -1677,5 +1691,7 @@
     COCOA_LOG_FLOW(("%s: self=%p\n", __PRETTY_FUNCTION__, (void *)self));
     [self vboxReshapePerform];
+#ifndef IN_VMSVGA3D
     [self createDockTile];
+#endif
     COCOA_LOG_FLOW(("%s: returns\n", __PRETTY_FUNCTION__));
 }
@@ -1825,5 +1841,9 @@
 - (void)vboxReshapePerform
 {
+#ifndef IN_VMSVGA3D
     COCOA_LOG_FLOW(("%s: self=%p - m_DockTileView=%p\n", __PRETTY_FUNCTION__, (void *)self, (void *)m_DockTileView));
+#else
+    COCOA_LOG_FLOW(("%s: self=%p\n", __PRETTY_FUNCTION__, (void *)self));
+#endif
 
     /* NOTE: Please consider the next naming convention for variables.
@@ -1893,6 +1913,8 @@
     [[self window] setFrame:windowFrameSCS display:YES];
 
+#ifndef IN_VMSVGA3D
     /* Inform the dock tile view as well. */
     [self reshapeDockTile];
+#endif
 
     /* Make sure the context is updated accordingly. */
@@ -1910,4 +1932,6 @@
     COCOA_LOG_FLOW(("%s: returns\n", __PRETTY_FUNCTION__));
 }
+
+#ifndef IN_VMSVGA3D
 
 - (void)createDockTile
@@ -1944,4 +1968,6 @@
     COCOA_LOG_FLOW(("%s: returns\n", __PRETTY_FUNCTION__));
 }
+
+#endif /* !IN_VMSVGA3D */
 
 - (void)makeCurrentFBO
@@ -2662,4 +2688,6 @@
 }
 
+#ifndef IN_VMSVGA3D
+
 - (NSView *)dockTileScreen
 {
@@ -2712,4 +2740,6 @@
                     (int)newFrame.origin.y, (int)newFrame.size.width, (int)newFrame.size.height, (void *)pView));
 }
+
+#endif /* !IN_VMSVGA3D */
 
 @end /* @implementation OverlayView */
