diff options
author | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2013-02-20 13:56:14 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-02-22 17:27:03 +0100 |
commit | cb8bfeafac537fd8b985eded4b4a0b2adba28b7e (patch) | |
tree | 248e272d2c226d3cd7325e9ef47f604cccf46771 /src/platformsupport/cglconvenience/cglconvenience.mm | |
parent | 06af277c598cfb88eaf53fabd79b2de4a00dd4c3 (diff) |
Drop the unused qcgl_createGlContext function
Change-Id: I09286388e9af7ec472b394be87204746f8ae22b1
Reviewed-by: James Turner <james.turner@kdab.com>
Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
Diffstat (limited to 'src/platformsupport/cglconvenience/cglconvenience.mm')
-rw-r--r-- | src/platformsupport/cglconvenience/cglconvenience.mm | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/platformsupport/cglconvenience/cglconvenience.mm b/src/platformsupport/cglconvenience/cglconvenience.mm index b0ea2d2225..81e8870ade 100644 --- a/src/platformsupport/cglconvenience/cglconvenience.mm +++ b/src/platformsupport/cglconvenience/cglconvenience.mm @@ -125,13 +125,3 @@ void *qcgl_createNSOpenGLPixelFormat(const QSurfaceFormat &format) NSOpenGLPixelFormat* pixelFormat = [[NSOpenGLPixelFormat alloc] initWithAttributes:attrs.constData()]; return pixelFormat; } - -CGLContextObj qcgl_createGlContext() -{ - CGLContextObj context; - NSOpenGLPixelFormat *format = reinterpret_cast<NSOpenGLPixelFormat *>(qcgl_createNSOpenGLPixelFormat(qcgl_surfaceFormat())); - CGLPixelFormatObj cglFormat = static_cast<CGLPixelFormatObj>([format CGLPixelFormatObj]); - CGLCreateContext(cglFormat ,NULL, &context); - return context; -} - |