[cairo-commit] libglc/src glc_agl_format.c,1.1,1.2 glc_agl_surface.c,1.1,1.2 glc_glx_format.c,1.5,1.6 glc_glx_surface.c,1.8,1.9

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-serv29053/src

Modified Files:
	glc_agl_format.c glc_agl_surface.c glc_glx_format.c 
	glc_glx_surface.c 
Log Message:
Single buffering fixes

Index: glc_agl_format.c
===================================================================
RCS file: /cvs/cairo/libglc/src/glc_agl_format.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** glc_agl_format.c	3 Feb 2004 15:12:11 -0000	1.1
--- glc_agl_format.c	3 Feb 2004 16:34:51 -0000	1.2
***************
*** 203,206 ****
--- 203,209 ----
      format->doublebuffer = 1;
      *mask |= GLC_AGL_FORMAT_DOUBLEBUFFER_MASK;
+   } else {
+     format->doublebuffer = 0;
+     *mask |= GLC_AGL_FORMAT_DOUBLEBUFFER_MASK;
    }
  }

Index: glc_agl_surface.c
===================================================================
RCS file: /cvs/cairo/libglc/src/glc_agl_surface.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** glc_agl_surface.c	3 Feb 2004 15:12:11 -0000	1.1
--- glc_agl_surface.c	3 Feb 2004 16:34:51 -0000	1.2
***************
*** 305,313 ****
    if (!surface->window)
      return;
!   
    glc_agl_context_push_current (surface,
                                  GLC_CONSTRAINT_SURFACE_DRAWABLE_CURRENT);
! 
!   aglSwapBuffers (surface->context->context);
    
    glc_agl_context_pop_current (surface);
--- 305,316 ----
    if (!surface->window)
      return;
! 
    glc_agl_context_push_current (surface,
                                  GLC_CONSTRAINT_SURFACE_DRAWABLE_CURRENT);
!   
!   if (surface->format->doublebuffer)
!     aglSwapBuffers (surface->context->context);
!   else
!     glFlush ();
    
    glc_agl_context_pop_current (surface);

Index: glc_glx_format.c
===================================================================
RCS file: /cvs/cairo/libglc/src/glc_glx_format.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** glc_glx_format.c	3 Feb 2004 15:12:11 -0000	1.5
--- glc_glx_format.c	3 Feb 2004 16:34:51 -0000	1.6
***************
*** 239,242 ****
--- 239,245 ----
      format->doublebuffer = 1;
      *mask |= GLC_GLX_FORMAT_DOUBLEBUFFER_MASK;
+   } else {
+     format->doublebuffer = 0;
+     *mask |= GLC_GLX_FORMAT_DOUBLEBUFFER_MASK;
    }
  }

Index: glc_glx_surface.c
===================================================================
RCS file: /cvs/cairo/libglc/src/glc_glx_surface.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** glc_glx_surface.c	3 Feb 2004 15:12:11 -0000	1.8
--- glc_glx_surface.c	3 Feb 2004 16:34:51 -0000	1.9
***************
*** 352,359 ****
      return;
  
!   glc_glx_context_push_current (surface, GLC_CONSTRAINT_ANY_CONTEXT_CURRENT);
  
!   glXSwapBuffers (surface->screen_info->display_info->display,
!                   surface->drawable);
    
    glc_glx_context_pop_current (surface);
--- 352,363 ----
      return;
  
!   glc_glx_context_push_current (surface,
!                                 GLC_CONSTRAINT_SURFACE_CONTEXT_CURRENT);
  
!   if (surface->format->doublebuffer)
!     glXSwapBuffers (surface->screen_info->display_info->display,
!                     surface->drawable);
!   else
!     glFlush ();
    
    glc_glx_context_pop_current (surface);





More information about the cairo-commit mailing list