Results 1 to 5 of 5

Thread: DOUBLEBUFFER

  1. #1
    Guest

    DOUBLEBUFFER

    i wrote a small program (from a tutorial) and when i request double buffer it cant make a rendering context!
    i sent my program to a friend and it works ok there!
    i have geforce3 on pentium3 550
    any ideas?
    thanks

  2. #2
    Senior Member Regular Contributor
    Join Date
    Sep 2002
    Location
    Nanjing,China
    Posts
    116

    Re: DOUBLEBUFFER

    don't know what os are running? On win32,

    the PIXELFORMATDESCRIPTOR dwFlags field should be set as PFD_DOUBLEBUFFER for swapbuffer

  3. #3
    Guest

    Re: DOUBLEBUFFER

    its win XP,
    it is PFD....
    the program works on other computers!

  4. #4
    Senior Member Regular Contributor
    Join Date
    Sep 2002
    Location
    Nanjing,China
    Posts
    116

    Re: DOUBLEBUFFER

    Please search the forum, there are some previous posts talk about opengl app on winxp is abnormally slow comparing win2k and 98 .I don't remember exactly. It looks like the pixelformat on XP need different setting ,something like that.

  5. #5
    Senior Member OpenGL Pro
    Join Date
    Oct 2000
    Location
    Fargo, ND
    Posts
    1,753

    Re: DOUBLEBUFFER

    Post some code for how you setup your PIXELFORMATDESCRIPTOR...

    One common things to forget that can cause mixed results include things like not clearing out the memory of the PIXELFORMATDESCRIPTOR before setting the members you care about.

    e.g.
    memset(&pfd, 0, sizeof(PIXELFORMATDESCRIPTOR));

    pfd.whatever = whatever;

    Also, make sure you use DescribePixelFormat before SetPixelFormat. Some systems it appears to work w/o doing that, some don't. It doesn't hurt to add it just to ensure that your PIXELFORMATDESCRIPTOR is correctly filled in, though.

    [This message has been edited by Deiussum (edited 07-02-2003).]
    Deiussum
    Software Engineer and OpenGL enthusiast

Similar Threads

  1. doublebuffer cause flickering prolbem
    By captainxyz in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 04-02-2006, 04:01 PM
  2. doublebuffer cause flickering prolbem
    By captainxyz in forum OpenGL: Windows
    Replies: 3
    Last Post: 03-29-2006, 09:55 AM
  3. DoubleBuffer - Invisible Cursor
    By TaYlorS in forum OpenGL: Advanced Coding
    Replies: 5
    Last Post: 01-10-2003, 09:11 AM
  4. doublebuffer doesn't work
    By Tux in forum OpenGL: Basic Coding
    Replies: 7
    Last Post: 02-12-2002, 06:55 AM
  5. Doublebuffer
    By rangaroek in forum OpenGL: macOS
    Replies: 1
    Last Post: 12-01-2000, 05:33 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