[cairo-commit] libglc/src glc_glx_format.c,1.9,1.10

David Reveman commit at pdx.freedesktop.org
Mon Aug 15 11:12:59 PDT 2005


Committed by: davidr

Update of /cvs/cairo/libglc/src
In directory pdx:/tmp/cvs-serv6491/src

Modified Files:
	glc_glx_format.c 
Log Message:
Fixed so that the correct visual IDs are retrieved

Index: glc_glx_format.c
===================================================================
RCS file: /cvs/cairo/libglc/src/glc_glx_format.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** glc_glx_format.c	5 Feb 2004 22:22:28 -0000	1.9
--- glc_glx_format.c	5 Feb 2004 23:28:01 -0000	1.10
***************
*** 134,138 ****
        continue;
      
!     format.id = visuals->visualid;
      glXGetConfig (display, &visuals[i], GLX_RED_SIZE, &value);
      format.red = (unsigned short) value;
--- 134,138 ----
        continue;
      
!     format.id = visuals[i].visualid;
      glXGetConfig (display, &visuals[i], GLX_RED_SIZE, &value);
      format.red = (unsigned short) value;
***************
*** 147,151 ****
      glXGetConfig (display, &visuals[i], GLX_DOUBLEBUFFER, &value);
      format.doublebuffer = (value) ? 1: 0;
!     
      if (screen_info->feature_mask & GLC_FEATURE_MULTISAMPLE_MASK) {
        glXGetConfig (display, &visuals[i], GLX_SAMPLE_BUFFERS_ARB, &value);
--- 147,151 ----
      glXGetConfig (display, &visuals[i], GLX_DOUBLEBUFFER, &value);
      format.doublebuffer = (value) ? 1: 0;
! 
      if (screen_info->feature_mask & GLC_FEATURE_MULTISAMPLE_MASK) {
        glXGetConfig (display, &visuals[i], GLX_SAMPLE_BUFFERS_ARB, &value);





More information about the cairo-commit mailing list