mirror of https://github.com/qt/qtbase.git
wayland: Drop QWaylandGLContext::getProcAddress()
It's the same as getProcAddress() in the QEGLPlatformContext class. Change-Id: I7b66a953f77bde0bf188718e234ba362e055fe4d Reviewed-by: David Redondo <qt@david-redondo.de>
This commit is contained in:
parent
a895b929d2
commit
c15c67ed2f
|
@ -417,14 +417,6 @@ GLuint QWaylandGLContext::defaultFramebufferObject(QPlatformSurface *surface) co
|
||||||
return static_cast<QWaylandEglWindow *>(surface)->contentFBO();
|
return static_cast<QWaylandEglWindow *>(surface)->contentFBO();
|
||||||
}
|
}
|
||||||
|
|
||||||
QFunctionPointer QWaylandGLContext::getProcAddress(const char *procName)
|
|
||||||
{
|
|
||||||
QFunctionPointer proc = (QFunctionPointer) eglGetProcAddress(procName);
|
|
||||||
if (!proc)
|
|
||||||
proc = (QFunctionPointer) dlsym(RTLD_DEFAULT, procName);
|
|
||||||
return proc;
|
|
||||||
}
|
|
||||||
|
|
||||||
EGLSurface QWaylandGLContext::eglSurfaceForPlatformSurface(QPlatformSurface *surface)
|
EGLSurface QWaylandGLContext::eglSurfaceForPlatformSurface(QPlatformSurface *surface)
|
||||||
{
|
{
|
||||||
return static_cast<QWaylandEglWindow *>(surface)->eglSurface();
|
return static_cast<QWaylandEglWindow *>(surface)->eglSurface();
|
||||||
|
|
|
@ -47,8 +47,6 @@ public:
|
||||||
|
|
||||||
GLuint defaultFramebufferObject(QPlatformSurface *surface) const override;
|
GLuint defaultFramebufferObject(QPlatformSurface *surface) const override;
|
||||||
|
|
||||||
QFunctionPointer getProcAddress(const char *procName) override;
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
EGLSurface eglSurfaceForPlatformSurface(QPlatformSurface *surface) override;
|
EGLSurface eglSurfaceForPlatformSurface(QPlatformSurface *surface) override;
|
||||||
EGLSurface createTemporaryOffscreenSurface() override;
|
EGLSurface createTemporaryOffscreenSurface() override;
|
||||||
|
|
Loading…
Reference in New Issue