From 74d548094307f3f3609890d839d5742296e611da Mon Sep 17 00:00:00 2001 From: Jani Hautakangas Date: Tue, 27 Sep 2011 23:55:42 +0300 Subject: A patch for 'Fix to QtOpenGL crash' EGL API was used also on non-EGL Symbian platforms which generated compile errors when compiling Qt on those platforms. This patch #ifdefs EGL usage correctly for EGL enabled platforms only. Reviewed-by: TRUSTME --- src/gui/painting/qgraphicssystemex_symbian.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/painting/qgraphicssystemex_symbian.cpp b/src/gui/painting/qgraphicssystemex_symbian.cpp index 46731d8..32e040f 100644 --- a/src/gui/painting/qgraphicssystemex_symbian.cpp +++ b/src/gui/painting/qgraphicssystemex_symbian.cpp @@ -55,8 +55,10 @@ QT_BEGIN_NAMESPACE static bool bcm2727Initialized = false; static bool bcm2727 = false; +#ifdef Q_SYMBIAN_SUPPORTS_SURFACES typedef EGLBoolean (*NOK_resource_profiling)(EGLDisplay, EGLint, EGLint*, EGLint, EGLint*); #define EGL_PROF_TOTAL_MEMORY_NOK 0x3070 +#endif // Detect if Qt is running on BCM2727 chip. // BCM2727 is a special case on Symbian because -- cgit v0.12