Results 1 to 2 of 2

Thread: context of opengl is changing on mac os x

  1. #1
    Join Date
    Feb 2008
    Posts
    51
    Thanks
    3
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default context of opengl is changing on mac os x

    Hi,

    I am drawing a 3D object using QGLWidget. It is working properly on windows but when I tried it on Mac OS it is not showing me my object. It just displays the window.

    While investigating this issue, I found that initializeGL() is getting called whenever a widget needs to be redrawn. I think that it is because of change in context.

    Can you tell me when context changes on mac os x? Or how to create and set a proper context for mac os x?

    Please let me know as early as possible because I am facing this problem from last 2 weeks.

    Thanks in advance.

    Regards,
    Sandip

  2. #2
    Join Date
    Jul 2007
    Posts
    90
    Thanks
    2
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: context of opengl is changing on mac os x

    hi,
    I am also facing the same problem on Linux.
    Whenever the widget is redrawn,initializeGL() is called.
    initializeGL() is called only once or when context is changing.
    so it seems that its context is changing whenever it redraws.

    so can anyone tell me how to set the context or how to tell not to change the context.

    regards,
    ~sanjay

Similar Threads

  1. OpenGL and Qt Question
    By ToddAtWSU in forum Qt Programming
    Replies: 2
    Last Post: 18th April 2009, 18:04
  2. Qtopia Core & OpenGL ES?
    By zelko in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 28th May 2007, 07:21
  3. help on openGL context
    By mickey in forum Qt Programming
    Replies: 1
    Last Post: 29th March 2006, 19:21
  4. Qt's optimized OpenGL context switching
    By sverhoff in forum Qt Programming
    Replies: 0
    Last Post: 28th March 2006, 16:40
  5. Context OpenGL
    By mickey in forum Qt Programming
    Replies: 4
    Last Post: 3rd March 2006, 21:13

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.