Results 1 to 2 of 2

Thread: black window and time delay: Sync X and GL?

  1. #1
    Junior Member Newbie
    Join Date
    May 2008
    Posts
    4

    black window and time delay: Sync X and GL?

    I have an application that has several windows.
    But one window out of ten, has black window not drawing anything.
    This does not happen always but only that window not to other windows. I am using glX on Macosx. But I've seen this, on Solaris and even on Windows. Of course, with the same source code.

    So, I put some time delay between XCreateWindow() and GL-drawings. Though it does not remove the symptom of balck window, it make it less frequent.
    But I do not know why.

    It has something to do with the Async between X and GL, I guess.
    I tried XSync() or glXWaitX() with no effects on the symptom.

    -BO

  2. #2
    Super Moderator OpenGL Guru imported_dorbie's Avatar
    Join Date
    Jul 2000
    Location
    Bay Area, CA, USA
    Posts
    3,966

    Re: black window and time delay: Sync X and GL?

    Check your return values.

Similar Threads

  1. How to give time delay for animation ....
    By qawded in forum OpenGL: Basic Coding
    Replies: 10
    Last Post: 07-01-2013, 11:38 AM
  2. sync to vertical blank with single-buffered window
    By l_belev in forum OpenGL: General
    Replies: 1
    Last Post: 08-01-2011, 07:46 AM
  3. delay time in Glut commands
    By Scorpio in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 04-20-2011, 05:31 AM
  4. SetPixelFormat() - time delay ?
    By MarianB in forum OpenGL: Windows
    Replies: 1
    Last Post: 04-05-2004, 08:46 AM
  5. Window out of sync
    By bumby in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 05-07-2003, 11:13 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean