41QOpenGLFunctions_1_0::~QOpenGLFunctions_1_0()
44 d_1_0_Core->refs.deref();
45 Q_ASSERT(d_1_0_Core->refs.loadRelaxed());
47 if (d_1_0_Deprecated) {
48 d_1_0_Deprecated->refs.deref();
49 Q_ASSERT(d_1_0_Deprecated->refs.loadRelaxed());
53bool QOpenGLFunctions_1_0::initializeOpenGLFunctions()
55 if ( isInitialized() )
58 QOpenGLContext* context = QOpenGLContext::currentContext();
62 if (((owningContext() && owningContext() == context) || !owningContext())
63 && QOpenGLFunctions_1_0::isContextCompatible(context))
67 QOpenGLVersionFunctionsBackend* d =
nullptr;
68 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_0_CoreBackend::versionStatus());
69 d_1_0_Core =
static_cast<QOpenGLFunctions_1_0_CoreBackend*>(d);
72 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_0_DeprecatedBackend::versionStatus());
73 d_1_0_Deprecated =
static_cast<QOpenGLFunctions_1_0_DeprecatedBackend*>(d);
76 QAbstractOpenGLFunctions::initializeOpenGLFunctions();
78 return isInitialized();