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

Windows: One of QGLWidget typedef flags compiler error (conflict when using OpenSG)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • 5.3.0
    • 5.2.1
    • GUI: OpenGL
    • None
    • Windows

    Description

      When other graphics library like OpenSG is being used in the application which happens to also include openGL heaer and defines GL_ARB_vertex_buffer_object but not GL_NV_video_capture then Following #ifdef of qopenglext.h creates compiler error.

      #ifndef GL_ARB_vertex_buffer_object 
      /* GL types for handling large vertex buffer objects */ 
      typedef ptrdiff_t GLintptrARB; 
      typedef ptrdiff_t GLsizeiptrARB; 
      #endif 
      

      changing it to this makes the compiler happy.

      #if !defined(GL_ARB_vertex_buffer_object) || !defined(GL_NV_video_capture) 
      /* GL types for handling large vertex buffer objects */ 
      typedef ptrdiff_t GLintptrARB; 
      typedef ptrdiff_t GLsizeiptrARB; 
      #endif
      

      Attachments

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

        Activity

          People

            lagocs Laszlo Agocs
            qtcomsupport Qt Support
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes