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>
This commit is contained in:
parent
06af277c59
commit
cb8bfeafac
@ -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;
|
||||
}
|
||||
|
||||
|
@ -49,6 +49,5 @@
|
||||
void (*qcgl_getProcAddress(const QByteArray &procName))();
|
||||
QSurfaceFormat qcgl_surfaceFormat();
|
||||
void *qcgl_createNSOpenGLPixelFormat(const QSurfaceFormat &format);
|
||||
CGLContextObj qcgl_createGlContext();
|
||||
|
||||
#endif // QMACGLCONVENIENCE_H
|
||||
|
Loading…
Reference in New Issue
Block a user