summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@nokia.com>2010-04-23 21:52:10 (GMT)
committerLiang Qi <liang.qi@nokia.com>2010-04-23 21:52:10 (GMT)
commitd095a300728372fab107df27fdf4edc9d2164bfc (patch)
treec60ad754bab1813291c7604ba4453ab1f6a5a77b /src
parentbdb60cb602798a73eef3837c577797791b6c8a00 (diff)
downloadQt-d095a300728372fab107df27fdf4edc9d2164bfc.zip
Qt-d095a300728372fab107df27fdf4edc9d2164bfc.tar.gz
Qt-d095a300728372fab107df27fdf4edc9d2164bfc.tar.bz2
Fix for EGL for symbian on 3.1/3.2/5.0, define QT_NO_EGL.
Reviewed-by: Jason Barron
Diffstat (limited to 'src')
-rw-r--r--src/gui/egl/egl.pri1
-rw-r--r--src/gui/egl/qegl.cpp10
-rw-r--r--src/gui/egl/qegl_p.h4
-rw-r--r--src/gui/egl/qegl_stub.cpp12
4 files changed, 25 insertions, 2 deletions
diff --git a/src/gui/egl/egl.pri b/src/gui/egl/egl.pri
index 65b1636..bf25438 100644
--- a/src/gui/egl/egl.pri
+++ b/src/gui/egl/egl.pri
@@ -23,6 +23,7 @@ contains(QT_CONFIG, egl): {
}
}
} else:symbian {
+ DEFINES += QT_NO_EGL
SOURCES += egl/qegl_stub.cpp
SOURCES += egl/qeglproperties_stub.cpp
}
diff --git a/src/gui/egl/qegl.cpp b/src/gui/egl/qegl.cpp
index 0ed95ea..ee19216 100644
--- a/src/gui/egl/qegl.cpp
+++ b/src/gui/egl/qegl.cpp
@@ -333,6 +333,16 @@ bool QEglContext::configAttrib(int name, EGLint *value) const
return eglGetConfigAttrib(display(), cfg, name, value);
}
+void QEglContext::clearError()
+{
+ eglGetError();
+}
+
+EGLint QEglContext::error()
+{
+ return eglGetError();
+}
+
// Retrieve all of the properties on "cfg". If zero, return
// the context's configuration.
QEglProperties QEglContext::configProperties(EGLConfig cfg) const
diff --git a/src/gui/egl/qegl_p.h b/src/gui/egl/qegl_p.h
index 87ed818..e08e1dd 100644
--- a/src/gui/egl/qegl_p.h
+++ b/src/gui/egl/qegl_p.h
@@ -102,8 +102,8 @@ public:
bool configAttrib(int name, EGLint *value) const;
- static void clearError() { eglGetError(); }
- static EGLint error() { return eglGetError(); }
+ static void clearError();
+ static EGLint error();
static QString errorString(EGLint code);
static EGLDisplay display();
diff --git a/src/gui/egl/qegl_stub.cpp b/src/gui/egl/qegl_stub.cpp
index e280739..0363103 100644
--- a/src/gui/egl/qegl_stub.cpp
+++ b/src/gui/egl/qegl_stub.cpp
@@ -165,6 +165,18 @@ bool QEglContext::configAttrib(int name, EGLint *value) const
return false;
}
+void QEglContext::clearError()
+{
+ NOEGL
+ return;
+}
+
+EGLint QEglContext::error()
+{
+ NOEGL
+ return 0;
+}
+
EGLDisplay QEglContext::display()
{
NOEGL