Cocoa: Make the hellowindow opengl example work.
authorMorten Sorvig <morten.sorvig@nokia.com>
Tue, 30 Aug 2011 08:41:54 +0000 (10:41 +0200)
committerSamuel Rødal <samuel.rodal@nokia.com>
Tue, 30 Aug 2011 10:12:45 +0000 (12:12 +0200)
commitd610fbc13e589b36ce8f1e1af7166d215f0ccc90
treea80f8345f7c155a5d875ab008c5966c77df0cabe
parent42f2da5e6b543e698fc4f036c45ebb15078409c8
Cocoa: Make the hellowindow opengl example work.

You're not supposed to use NSOpenGLView and
NSOpenGLContext at the same time - it's one or
the other. Qmlscene worked because it was hitting
the raster path that doesn't have a NSOpenGLView.

Remove the NSOpenGLView path and m_windowSurfaceView.

Change-Id: I10358851a94cd1780a312af09bbb7cf5db8f984f
Reviewed-on: http://codereview.qt.nokia.com/3862
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
src/plugins/platforms/cocoa/qcocoabackingstore.mm
src/plugins/platforms/cocoa/qcocoaglcontext.mm
src/plugins/platforms/cocoa/qcocoawindow.h
src/plugins/platforms/cocoa/qcocoawindow.mm