[xorg-bugzilla-noise] [Bug 935] New: glxgears does not work on Darwin

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Jul 27 23:47:59 PDT 2004


Please do not reply to this email: if you want to comment on the bug, go to         
the URL shown below and enter yourcomments there.  
  
https://freedesktop.org/bugzilla/show_bug.cgi?id=935       
  
           Summary: glxgears does not work on Darwin
           Product: xorg
           Version: CVS_head
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P2
         Component: App/other
        AssignedTo: xorg-bugzilla-noise at freedesktop.org
        ReportedBy: roland.mainz at nrubsig.org


2004-07-27-trunk, an attempt to use glxgears on Darwin fails with the message:
-- snip --
glxgears: Error: couldn't get an RGB, Double-buffered visual.
-- snip --

The following quick hack works around the problem:
-- snip --
Index: xc/programs/glxgears/glxgears.c
===================================================================
RCS file: /cvs/xorg/xc/programs/glxgears/glxgears.c,v
retrieving revision 1.3
diff -u -r1.3 glxgears.c
--- xc/programs/glxgears/glxgears.c     29 Apr 2004 23:00:06 -0000      1.3
+++ xc/programs/glxgears/glxgears.c     28 Jul 2004 06:11:00 -0000
@@ -342,11 +342,9 @@
              int x, int y, int width, int height,
              Window *winRet, GLXContext *ctxRet)
 {
-   int attrib[] = { GLX_RGBA,
-                   GLX_RED_SIZE, 1,
+   int attrib[] = { GLX_RED_SIZE, 1,
                    GLX_GREEN_SIZE, 1,
                    GLX_BLUE_SIZE, 1,
-                   GLX_DOUBLEBUFFER,
                    GLX_DEPTH_SIZE, 1,
                    None };
    int scrnum;
-- snip --
IMO "glxgears" should have an option to test for non-doublebuffer/non-RGBA
visuals, too.       
  
  
--        
Configure bugmail: https://freedesktop.org/bugzilla/userprefs.cgi?tab=email      
  
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


More information about the xorg-bugzilla-noise mailing list