aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Gräßlin <[email protected]>2016-11-16 18:46:10 +0100
committerMartin Gräßlin <[email protected]>2016-11-17 12:59:48 +0100
commitdcf7f40c18fb56ea592aa35cd5ca238d98d39fe6 (patch)
treea05d22cc7499a1a49247384d7e87151bea416789
parent5d3e15ff3a2cbbff6c5cb5ca9a4a73a961ed757f (diff)
[kwinglutils] Drop eglResolveFunctions
Summary: Method doesn't do anything. If at some point we want to resolve egl functions again, it should be done in the Platform, just like glxResolveFunctions is nowadays done in the platform. Reviewers: #kwin, #plasma Subscribers: plasma-devel, kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D3391
-rw-r--r--libkwineffects/kwinglutils.cpp1
-rw-r--r--libkwineffects/kwinglutils_funcs.cpp4
-rw-r--r--libkwineffects/kwinglutils_funcs.h2
3 files changed, 0 insertions, 7 deletions
diff --git a/libkwineffects/kwinglutils.cpp b/libkwineffects/kwinglutils.cpp
index 50f57f0..0221038 100644
--- a/libkwineffects/kwinglutils.cpp
+++ b/libkwineffects/kwinglutils.cpp
@@ -76,7 +76,6 @@ void initEGL()
dpy = eglGetDisplay(EGL_DEFAULT_DISPLAY);
const QByteArray string = eglQueryString(dpy, EGL_EXTENSIONS);
s_eglExtensions = string.split(' ');
- eglResolveFunctions();
}
void initGL(std::function<resolveFuncPtr(const char*)> resolveFunction)
diff --git a/libkwineffects/kwinglutils_funcs.cpp b/libkwineffects/kwinglutils_funcs.cpp
index 1c786f6..0ea13d9 100644
--- a/libkwineffects/kwinglutils_funcs.cpp
+++ b/libkwineffects/kwinglutils_funcs.cpp
@@ -40,10 +40,6 @@ glGetGraphicsResetStatus_func glGetGraphicsResetStatus;
glReadnPixels_func glReadnPixels;
glGetnUniformfv_func glGetnUniformfv;
-void eglResolveFunctions()
-{
-}
-
void glResolveFunctions(std::function<resolveFuncPtr(const char*)> resolveFunction)
{
const bool haveArbRobustness = hasGLExtension(QByteArrayLiteral("GL_ARB_robustness"));
diff --git a/libkwineffects/kwinglutils_funcs.h b/libkwineffects/kwinglutils_funcs.h
index 43eee76..30241af 100644
--- a/libkwineffects/kwinglutils_funcs.h
+++ b/libkwineffects/kwinglutils_funcs.h
@@ -48,8 +48,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
namespace KWin
{
-void KWINGLUTILS_EXPORT eglResolveFunctions();
-
typedef void (*resolveFuncPtr)();
void KWINGLUTILS_EXPORT glResolveFunctions(std::function<resolveFuncPtr(const char*)> resolveFunction);