Changeset View
Changeset View
Standalone View
Standalone View
plugins/qpa/abstractplatformcontext.cpp
Show First 20 Lines • Show All 113 Lines • ▼ Show 20 Line(s) | 113 | { | |||
---|---|---|---|---|---|
114 | eglMakeCurrent(m_eglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); | 114 | eglMakeCurrent(m_eglDisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); | ||
115 | } | 115 | } | ||
116 | 116 | | |||
117 | QSurfaceFormat AbstractPlatformContext::format() const | 117 | QSurfaceFormat AbstractPlatformContext::format() const | ||
118 | { | 118 | { | ||
119 | return m_format; | 119 | return m_format; | ||
120 | } | 120 | } | ||
121 | 121 | | |||
122 | #if (QT_VERSION < QT_VERSION_CHECK(5, 7, 0)) | | |||
123 | QFunctionPointer AbstractPlatformContext::getProcAddress(const QByteArray &procName) | | |||
124 | { | | |||
125 | return eglGetProcAddress(procName.constData()); | | |||
126 | } | | |||
127 | #else | | |||
128 | QFunctionPointer AbstractPlatformContext::getProcAddress(const char *procName) | 122 | QFunctionPointer AbstractPlatformContext::getProcAddress(const char *procName) | ||
129 | { | 123 | { | ||
130 | return eglGetProcAddress(procName); | 124 | return eglGetProcAddress(procName); | ||
131 | } | 125 | } | ||
132 | #endif | | |||
133 | 126 | | |||
134 | bool AbstractPlatformContext::isValid() const | 127 | bool AbstractPlatformContext::isValid() const | ||
135 | { | 128 | { | ||
136 | return m_context != EGL_NO_CONTEXT; | 129 | return m_context != EGL_NO_CONTEXT; | ||
137 | } | 130 | } | ||
138 | 131 | | |||
139 | bool AbstractPlatformContext::bindApi() | 132 | bool AbstractPlatformContext::bindApi() | ||
140 | { | 133 | { | ||
▲ Show 20 Lines • Show All 86 Lines • Show Last 20 Lines |