summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/eglfs
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/platforms/eglfs')
-rw-r--r--src/plugins/platforms/eglfs/qeglfswindow.cpp2
-rw-r--r--src/plugins/platforms/eglfs/qeglfswindow.h3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/platforms/eglfs/qeglfswindow.cpp b/src/plugins/platforms/eglfs/qeglfswindow.cpp
index db15862..86cc98b 100644
--- a/src/plugins/platforms/eglfs/qeglfswindow.cpp
+++ b/src/plugins/platforms/eglfs/qeglfswindow.cpp
@@ -71,7 +71,7 @@ WId QEglFSWindow::winId() const
-QPlatformGLContext *QEglFSWindow::glContext()
+QPlatformGLContext *QEglFSWindow::glContext() const
{
#ifdef QEGL_EXTRA_DEBUG
qWarning("QEglWindow::glContext %p\n", m_screen->platformContext());
diff --git a/src/plugins/platforms/eglfs/qeglfswindow.h b/src/plugins/platforms/eglfs/qeglfswindow.h
index f605cf4..0c3bc84 100644
--- a/src/plugins/platforms/eglfs/qeglfswindow.h
+++ b/src/plugins/platforms/eglfs/qeglfswindow.h
@@ -56,11 +56,12 @@ class QEglFSWindow : public QPlatformWindow
{
public:
QEglFSWindow(QWidget *w, QEglFSScreen *screen);
- QPlatformGLContext *glContext();
void setGeometry(const QRect &);
WId winId() const;
+ QPlatformGLContext *glContext() const;
+
private:
QEglFSScreen *m_screen;
WId m_winid;