Index: /trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIFrameBufferQuartz2D.cpp
===================================================================
--- /trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIFrameBufferQuartz2D.cpp	(revision 35214)
+++ /trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIFrameBufferQuartz2D.cpp	(revision 35215)
@@ -440,4 +440,24 @@
 }
 
+#ifdef VBOX_WITH_VIDEOHWACCEL
+void UIFrameBufferQuartz2D::setView(UIMachineView *pView)
+{
+    clean();
+    m_pMachineLogic = NULL;
+    m_pDataAddress = NULL;
+
+    if (pView)
+    {
+        m_pMachineLogic = pView->machineLogic();
+
+        UIResizeEvent event(FramebufferPixelFormat_Opaque,
+                        NULL, 0, 0, 640, 480);
+        UIFrameBufferQuartz2D::resizeEvent (&event);
+    }
+
+    UIFrameBuffer::setView(pView);
+}
+#endif
+
 #endif /* defined (VBOX_GUI_USE_QUARTZ2D) */
 
Index: /trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIFrameBufferQuartz2D.h
===================================================================
--- /trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIFrameBufferQuartz2D.h	(revision 35214)
+++ /trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIFrameBufferQuartz2D.h	(revision 35215)
@@ -52,4 +52,8 @@
     void resizeEvent(UIResizeEvent *pEvent);
 
+#ifdef VBOX_WITH_VIDEOHWACCEL
+    void setView(UIMachineView *pView);
+#endif
+
 private:
 
