Results 1 to 3 of 3

Thread: glx problem

  1. #1
    Junior Member Newbie
    Join Date
    Sep 2001
    Location
    Norway
    Posts
    26

    glx problem

    Something odd happens when I try to create a window with the following context:

    int dblBuf24[] = {GLX_RGBA, GLX_DOUBLEBUFFER, GLX_RED_SIZE, 8, GL_GREEN_SIZE, 8, GLX_BLUE_SIZE, 8, None};
    XVisualInfo *vi = glXChooseVisual(dpy, screen, dblBuf24);
    GLXContext context = glXCreateContext(dpy, vi, 0, GL_TRUE);

    The resulting window may be different when changing computer. In one I get what I want, on another I get black and white, and on yet another I get truecolor single buffered(the two other was doublebuffered).

    Any ideas anyone

  2. #2
    Senior Member OpenGL Pro
    Join Date
    May 2001
    Location
    Kristianstad,Skåne,Sweden
    Posts
    1,595

    Re: glx problem

    Hi !

    I am assuming that the computers you have tested on have support for the requested context ?, most OpenGL drivers have very limited support for different color depth and resolutions.

    Mikael

  3. #3
    Junior Member Newbie
    Join Date
    Sep 2001
    Location
    Norway
    Posts
    26

    Re: glx problem

    Well, I assumed that when I got an XVisualInfo that was not NULL, the requested context was supported...

    I have debugged on all the different computers, and glXChooseVisual(dpy, screen, dblBuf24) allways returns non NULL

Similar Threads

  1. Replies: 1
    Last Post: 09-23-2016, 02:24 PM
  2. Shading problem? (pyglet-problem?, my problem?)
    By H2OBrain in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 12-03-2009, 08:31 AM
  3. Replies: 4
    Last Post: 09-27-2004, 06:27 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