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

OpenGL extensions not queried correctly when using Core Profile with OpenGL >= 3.1

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Duplicate
    • Affects Version/s: 4.7.2, 4.8.0
    • Fix Version/s: None
    • Component/s: GUI: OpenGL
    • Labels:
      None
    • Environment:
      Qt (master)(sha1 53f16164661f8692aef9bd941b92697a047c0f4c)
      OpenGL version string: 3.3.0 NVIDIA 260.19.36
      Gentoo Linux x86_64

      Description

      The function QGLExtensions::Extensions QGLExtensions::currentContextExtensions() uses a call to glGetString(GL_EXTENSIONS) in order to retrieve the string of supported OpenGL extensions.

      When using OpenGL >= 3.1 along with the CoreProfile, the glGetString() entry point is deprecated and removed. This results in a null pointer to const char* which in turn results in Qt's OpenGL support thinking that no extensions are available at all. This then causes QGLShaderProgram to think that shaders are not supported either.

      I am now going to see if I can come up with a patch to fix this. If so I'll add it as a MR on gitorious.

        Attachments

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

          Activity

            People

            Assignee:
            rodal Samuel Rødal
            Reporter:
            seanharmer Sean Harmer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes