40QOpenGLFunctions_1_0::~QOpenGLFunctions_1_0()
43 d_1_0_Core->refs.deref();
44 Q_ASSERT(d_1_0_Core->refs.loadRelaxed());
46 if (d_1_0_Deprecated) {
47 d_1_0_Deprecated->refs.deref();
48 Q_ASSERT(d_1_0_Deprecated->refs.loadRelaxed());
52bool QOpenGLFunctions_1_0::initializeOpenGLFunctions()
54 if ( isInitialized() )
57 QOpenGLContext* context = QOpenGLContext::currentContext();
61 if (((owningContext() && owningContext() == context) || !owningContext())
62 && QOpenGLFunctions_1_0::isContextCompatible(context))
66 QOpenGLVersionFunctionsBackend* d =
nullptr;
67 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_0_CoreBackend::versionStatus());
68 d_1_0_Core =
static_cast<QOpenGLFunctions_1_0_CoreBackend*>(d);
71 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_0_DeprecatedBackend::versionStatus());
72 d_1_0_Deprecated =
static_cast<QOpenGLFunctions_1_0_DeprecatedBackend*>(d);
75 QAbstractOpenGLFunctions::initializeOpenGLFunctions();
77 return isInitialized();