Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-28821

Mistype in QtCore\qconfig.h (QT_NO_OPENGL_ES and QT_NO_OPENGL_ES)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.0.0, 5.0.1
    • GUI: OpenGL
    • None

    Description

      There is mistype (or bug) in "QtCore\qconfig.h".
      This causes problem when trying to use no-ES OpenGL headers and "glew" library.

      Problem lines:

      #if defined(QT_OPENGL_ES) && defined(QT_NO_OPENGL_ES)
      #undef QT_OPENGL_ES
      #elif !defined(QT_OPENGL_ES)
      #define QT_OPENGL_ES
      #endif

      #if defined(QT_OPENGL_ES_2) && defined(QT_NO_OPENGL_ES_2)
      #undef QT_OPENGL_ES_2
      #elif !defined(QT_OPENGL_ES_2)
      #define QT_OPENGL_ES_2
      #endif

      Note, that even if you define "QT_NO_OPENGL_ES_2", "QT_OPENGL_ES_2" will be defined anyway.
      This is definitely bug, as there many valid defines in this file, except those ones.

      FIX attached.

      Update:
      I've used Qt 5.0.0 binary distributive for Windows VS2010.

      By default QT_OPENGL_ES is undefined. So QT_NO_OPENGL_ES make no effect.

      Maybe QT_OPENGL_ES should be predefined (because this Qt built with GLES, not "desktop"), then QT_NO_OPENGL_ES would make sense.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            rodal Samuel Rødal
            dreamnik DreamNik
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes