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

QOpenGLContext::getProcAddress returns NULL for legacy OpenGL entry points (Windows)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P4: Low
    • 5.7.0 RC
    • 5.3.0
    • GUI: OpenGL
    • None
    • Presumably all Windows platforms - verified for Windows 7 64-bit

    Description

      Currently it seems that on Windows platforms QOpenGLContext::getProcAddress is implemented by just calling wglGetProcAddress. Unfortunately wglGetProcAddress returns NULL for all legacy entry points (i.e. even for commonly used and necessary functions like glClear, etc.). I suggest to implement a fallback as it is done for example in SDL_GL_GetProcAddress that resolves an entry point with LoadLibrary("OPENGL32.DLL") and GetProcAddress(...) whenever wglGetProcAddress returns zero. Not only does it make sense to be able to query all OpenGL entry points the same way, but the current behavior also introduces platform specific behavior, as for example glXGetProcAddress doesn't return NULL for these entry points.

      Attachments

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

        Activity

          People

            seanharmer Sean Harmer
            ekpyron Daniel Kirchner
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes