diff --git a/tests/examples/gl/qt/qglwtextureshare/cocoa_utils.mm b/tests/examples/gl/qt/qglwtextureshare/cocoa_utils.mm index 9b1e78b157..245ec0fe44 100644 --- a/tests/examples/gl/qt/qglwtextureshare/cocoa_utils.mm +++ b/tests/examples/gl/qt/qglwtextureshare/cocoa_utils.mm @@ -22,5 +22,5 @@ #import void *qt_current_nsopengl_context() { - return [NSOpenGLContext currentContext]; + return CGLGetCurrentContext (); }