[plasma/kwin] src/opengl: opengl/eglcontext: remove makeCurrent(EGLSurface)
Xaver Hugl <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 4b7d54ebd99d4c949ae65baef828d2790f6aa3fa by Xaver Hugl.
Committed on 03/08/2026 at 15:09.
Pushed by zamundaaa into branch 'master'.
opengl/eglcontext: remove makeCurrent(EGLSurface)
We don't use EGL surfaces in KWin
M +1 -6 src/opengl/eglcontext.cpp
M +0 -1 src/opengl/eglcontext.h
https://invent.kde.org/plasma/kwin/-/commit/4b7d54ebd99d4c949ae65baef828d2790f6aa3fa
diff --git a/src/opengl/eglcontext.cpp b/src/opengl/eglcontext.cpp
index e5c8e48ed73..a5d6c977434 100644
--- a/src/opengl/eglcontext.cpp
+++ b/src/opengl/eglcontext.cpp
@@ -123,17 +123,12 @@ EglContext::~EglContext()
}
bool EglContext::makeCurrent()
-{
- return makeCurrent(EGL_NO_SURFACE);
-}
-
-bool EglContext::makeCurrent(EGLSurface surface)
{
if (QOpenGLContext *context = QOpenGLContext::currentContext()) {
// Workaround to tell Qt that no QOpenGLContext is current
context->doneCurrent();
}
- const bool ret = eglMakeCurrent(m_display->handle(), surface, surface, m_handle) == EGL_TRUE;
+ const bool ret = eglMakeCurrent(m_display->handle(), EGL_NO_SURFACE, EGL_NO_SURFACE, m_handle) == EGL_TRUE;
if (ret) {
Q_ASSERT(m_handle != EGL_NO_CONTEXT);
Q_ASSERT(eglGetCurrentContext() == m_handle);
diff --git a/src/opengl/eglcontext.h b/src/opengl/eglcontext.h
index e13bf6f1ef5..f6ee3253dd8 100644
--- a/src/opengl/eglcontext.h
+++ b/src/opengl/eglcontext.h
@@ -42,7 +42,6 @@ public:
~EglContext();
[[nodiscard]] bool makeCurrent();
- bool makeCurrent(EGLSurface surface);
void doneCurrent() const;
std::shared_ptr<GLTexture> importDmaBufAsTexture(const DmaBufAttributes &attributes) const;