api: fix constness of QOpenGLContext::getProcAddress
Should be const just like Qt4's QGLContext::getProcAddress. Change-Id: I273467d5cf852cd49f48cec3f335c4ddac795363 Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
This commit is contained in:
parent
f18a6c5fb5
commit
d037d25c3d
@ -541,9 +541,9 @@ void QOpenGLContext::swapBuffers(QSurface *surface)
|
||||
|
||||
Returns 0 if no such function can be found.
|
||||
*/
|
||||
QFunctionPointer QOpenGLContext::getProcAddress(const QByteArray &procName)
|
||||
QFunctionPointer QOpenGLContext::getProcAddress(const QByteArray &procName) const
|
||||
{
|
||||
Q_D(QOpenGLContext);
|
||||
Q_D(const QOpenGLContext);
|
||||
if (!d->platformGLContext)
|
||||
return 0;
|
||||
return d->platformGLContext->getProcAddress(procName);
|
||||
|
@ -115,7 +115,7 @@ public:
|
||||
void doneCurrent();
|
||||
|
||||
void swapBuffers(QSurface *surface);
|
||||
QFunctionPointer getProcAddress(const QByteArray &procName);
|
||||
QFunctionPointer getProcAddress(const QByteArray &procName) const;
|
||||
|
||||
QSurface *surface() const;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user