OSDN Git Service

build build with EGL support
authorIvailo Monev <xakepa10@laimg.moc>
Fri, 19 Aug 2016 02:41:18 +0000 (02:41 +0000)
committerIvailo Monev <xakepa10@laimg.moc>
Fri, 19 Aug 2016 02:41:18 +0000 (02:41 +0000)
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
src/gui/egl/qegl.cpp
src/gui/egl/qegl_p.h
src/gui/kernel/qapplication.cpp
src/opengl/qgl_x11egl.cpp

index d7f6873..cf6882a 100644 (file)
@@ -127,16 +127,7 @@ EGLConfig QEgl::defaultConfig(int devType, API api, ConfigOptions options)
 
     EGLConfig* targetConfig = 0;
 
-    static const EGLConfig defaultVGConfigs[] = {
-        QEGL_NO_CONFIG, // 0    Window  Renderable  Translucent
-        QEGL_NO_CONFIG, // 1    Window  Renderable  Opaque
-        QEGL_NO_CONFIG, // 2    Pixmap  Renderable  Translucent
-        QEGL_NO_CONFIG, // 3    Pixmap  Renderable  Opaque
-        QEGL_NO_CONFIG, // 4    Pixmap  ReadOnly    Translucent
-        QEGL_NO_CONFIG  // 5    Pixmap  ReadOnly    Opaque
-    };
-
-    static const EGLConfig defaultGLConfigs[] = {
+    static EGLConfig defaultGLConfigs[] = {
         QEGL_NO_CONFIG, // 0    Window  Renderable  Translucent
         QEGL_NO_CONFIG, // 1    Window  Renderable  Opaque
         QEGL_NO_CONFIG, // 2    PBuffer Renderable  Translucent
index 35789fe..809d8a8 100644 (file)
 
 QT_BEGIN_INCLUDE_NAMESPACE
 
+#if defined(Q_WS_X11)
+#   include <qtextstream.h>
+#   include <qt_x11_p.h>
+#endif
+
 #ifndef QT_NO_EGL
 #if defined(QT_OPENGL_ES_2)
 #   include <GLES2/gl2.h>
index 42bff3e..a08d3e9 100644 (file)
@@ -707,14 +707,6 @@ QApplication::QApplication(int &argc, char **argv, Type type , int _internal)
     : QCoreApplication(*new QApplicationPrivate(argc, argv, type, _internal))
 { Q_D(QApplication); d->construct(); }
 
-#if defined(Q_WS_X11) && !defined(QT_NO_EGL)
-static int qt_matchLibraryName(dl_phdr_info *info, size_t, void *data)
-{
-    const char *name = static_cast<const char *>(data);
-    return strstr(info->dlpi_name, name) != 0;
-}
-#endif
-
 /*!
     \internal
 */
index bac9577..2a079b3 100644 (file)
@@ -40,9 +40,8 @@
 ****************************************************************************/
 
 #include "qgl.h"
-#include <qt_x11_p.h>
-#include <qpixmap_x11_p.h>
 #include <qgl_p.h>
+#include <qpixmap_x11_p.h>
 #include <qpaintengine_opengl_p.h>
 #include "qgl_egl_p.h"
 #include "qcolormap.h"